@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #14201b;
  --muted: #5c6b63;
  --line: rgba(20, 32, 27, 0.12);
  --paper: #f3efe6;
  --card: rgba(255, 252, 247, 0.92);
  --accent: #0b6b4f;
  --accent-2: #c45c26;
  --ok: #1b6b3a;
  --ok-bg: #e5f5ea;
  --warn: #9a3412;
  --warn-bg: #fff1e7;
  --danger: #8f1d2c;
  --shadow: 0 18px 50px rgba(20, 32, 27, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(11, 107, 79, 0.18), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(196, 92, 38, 0.14), transparent 50%),
    linear-gradient(180deg, #ebe4d6 0%, var(--paper) 42%, #e7f0ea 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(20, 32, 27, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 27, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
}

.wrap {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 12px 64px;
  animation: rise 0.55s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, #0b6b4f 0%, #0a4f3c 55%, #c45c26 120%);
  box-shadow: 0 10px 24px rgba(11, 107, 79, 0.28);
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 12px 14px;
  border: 2px solid rgba(255, 252, 247, 0.85);
  border-radius: 6px;
}

.brand-text h1,
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 6px;
}

.brand-text .tag,
.hero .tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero {
  margin-bottom: 22px;
}

.hero p.lead {
  max-width: 38rem;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px;
  background: rgba(255, 252, 247, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  width: fit-content;
  max-width: 100%;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: rise 0.6s ease both;
}

.card:nth-of-type(2) { animation-delay: 0.04s; }
.card:nth-of-type(3) { animation-delay: 0.08s; }
.card:nth-of-type(4) { animation-delay: 0.12s; }

.card h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.sub {
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1.25fr 1fr auto; align-items: end; }

label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

input[type=text],
input[type=tel],
input[type=password],
input[type=file],
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fffcf7;
  transition: border-color .15s ease, box-shadow .15s ease;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(11, 107, 79, 0.55);
  box-shadow: 0 0 0 4px rgba(11, 107, 79, 0.12);
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) 1.2fr;
  gap: 12px;
  align-items: end;
}
.phone-local-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.96);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.phone-local-wrap:focus-within {
  border-color: rgba(11, 107, 79, 0.55);
  box-shadow: 0 0 0 4px rgba(11, 107, 79, 0.12);
}
.phone-dial-prefix {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  min-height: 44px;
  background: rgba(11, 107, 79, 0.1);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-right: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.phone-local-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-weight: 650;
}

.login-stack {
  display: grid;
  gap: 16px;
}

.admin-card h2 {
  font-size: 1.25rem;
}

.collect-search {
  padding: 18px 20px;
  margin-bottom: 16px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 252, 247, 0.88));
}

.collect-search label {
  margin-bottom: 8px;
}

.search-shell {
  position: relative;
}

.search-shell::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  transform: translateY(-60%);
  opacity: 0.7;
  pointer-events: none;
}

.search-shell::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 58%;
  width: 7px;
  height: 2px;
  background: var(--muted);
  transform: rotate(45deg);
  opacity: 0.7;
  pointer-events: none;
}

.collect-search input[type=search],
.collect-search input[type=text],
.search-bar input[type=search],
.search-bar input[type=text] {
  width: 100%;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fffcf7;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.collect-search input[type=search]:focus,
.collect-search input[type=text]:focus,
.search-bar input[type=search]:focus,
.search-bar input[type=text]:focus {
  outline: none;
  border-color: rgba(11, 107, 79, 0.55);
  box-shadow: 0 0 0 4px rgba(11, 107, 79, 0.12);
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.search-hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
}

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

.section-head h2 {
  margin: 0;
}

.list-card .table-wrap {
  margin-top: 4px;
}

.user-list td {
  vertical-align: middle;
}

.user-list .btn-ghost.btn-xs,
.user-list .btn-paid.btn-xs {
  white-space: nowrap;
}
.user-list .js-copy-payid {
  min-width: 76px;
}
.user-list a.btn {
  padding: 8px 12px;
  font-size: 0.8rem;
  width: auto;
}

.approve-cell-title {
  font-weight: 750;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.approve-cell-meta {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.field-hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.day-panel.search-empty,
.card.search-empty {
  opacity: 0.55;
}

button, .btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 750;
  font-family: inherit;
  cursor: pointer;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}

button:hover, .btn:hover { transform: translateY(-1px); }
button:active, .btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, #12815f, var(--accent));
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 107, 79, 0.25);
}
.btn-dark { background: var(--ink); color: #fffcf7; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.nav .btn-ghost,
.nav button {
  border-radius: 999px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
}
.nav .btn-ghost:hover,
.nav button:hover { background: rgba(11, 107, 79, 0.08); }
.btn-danger { background: #f8e4e7; color: var(--danger); }
.btn-hold { background: var(--accent-2); color: #fff; }
.btn-release { background: #ffe3d1; color: var(--warn); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

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

.stats-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.stat b {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.stat span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stat em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink);
  opacity: 0.72;
}

.pay-money-stats {
  margin-bottom: 14px;
}

.approve-period-stats {
  margin-bottom: 14px;
}

a.stat {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.stat:hover {
  border-color: rgba(11, 107, 79, 0.35);
}

a.stat.is-on,
.in-review-day-stats .stat.is-on {
  border-color: rgba(11, 107, 79, 0.5);
  background: rgba(11, 107, 79, 0.08);
}

.in-review-by-day a {
  color: inherit;
  text-decoration: none;
  font-weight: 650;
}

.in-review-by-day a:hover {
  color: var(--accent);
}

.in-review-by-day a.btn {
  font-weight: 600;
  text-decoration: none;
}

.in-review-by-day th:last-child,
.in-review-by-day td:last-child {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.in-review-by-day tr.is-on td {
  background: rgba(11, 107, 79, 0.07);
}

.approve-period-stats .stat.accent {
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.10), rgba(255, 252, 247, 0.95));
  border-color: rgba(37, 99, 235, 0.22);
}

.server-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.server-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.85);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
}

.server-tab:hover {
  border-color: rgba(11, 107, 79, 0.35);
}

.server-tab.is-active {
  border-color: rgba(11, 107, 79, 0.5);
  background: rgba(11, 107, 79, 0.1);
  color: var(--accent);
}

.server-tab-count {
  display: inline-flex;
  min-width: 1.5rem;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(20, 32, 27, 0.06);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.server-day-stats .stat em {
  font-size: 0.72rem;
  line-height: 1.35;
}

.server-status-card .search-bar {
  margin-top: 4px;
}

.server-orders-table th,
.server-orders-table td {
  white-space: nowrap;
}

.nowrap { white-space: nowrap; }

.server-orders-table td:nth-child(2),
.server-orders-table td:nth-child(4) {
  white-space: normal;
  min-width: 7rem;
}

.admin-meta-pill.is-live {
  background: rgba(11, 107, 79, 0.12);
  color: var(--accent);
  border: 1px solid rgba(11, 107, 79, 0.22);
}

.admin-meta-pill.is-live.is-pulse {
  animation: livePulse 0.9s ease;
}

@keyframes livePulse {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.04); opacity: 0.75; }
  100% { transform: scale(1); opacity: 1; }
}

.pay-money-stats .stat b {
  font-size: 1.7rem;
}

.pay-money-stats .stat.accent {
  background: linear-gradient(160deg, rgba(11, 107, 79, 0.12), rgba(255, 252, 247, 0.95));
  border-color: rgba(11, 107, 79, 0.22);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fffcf7;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: transparent;
}

th, td {
  text-align: left;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(11, 107, 79, 0.05);
  white-space: nowrap;
}

tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: rgba(20, 32, 27, 0.015); }
tr:hover td { background: rgba(11, 107, 79, 0.045) !important; }

.pass {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  letter-spacing: 0.02em;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 0.75rem;
  font-weight: 750;
}

.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.danger,
span.pill.danger {
  background: #fdecee !important;
  color: #8f1d2c !important;
  border: 1px solid rgba(143, 29, 44, 0.28);
}
.pill.paid {
  background: rgba(27, 107, 58, 0.12);
  color: #14532d;
}
.pill.status-mid {
  background: rgba(30, 90, 110, 0.12);
  color: #1e4a5c;
}
.pill.waiting,
.pill.mismatch {
  background: rgba(92, 107, 99, 0.12);
  color: var(--muted);
}

.queue-status {
  margin-top: 6px;
}

.btn-paid {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.22);
}

.ticket-paid {
  border-color: rgba(29, 78, 216, 0.28);
  background: linear-gradient(180deg, #f5f8ff, #fffcf7);
}

.row-paid td { background: rgba(59, 130, 246, 0.06); }

.paid-form { margin: 0; }

.pay-summary-card .table-wrap {
  max-width: 420px;
}

.flash {
  background: var(--ok-bg);
  border: 1px solid rgba(27, 107, 58, 0.2);
  color: var(--ok);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-weight: 600;
}

.flash.err {
  background: #fdecee;
  border-color: rgba(143, 29, 44, 0.2);
  color: var(--danger);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto 16px;
  padding: 14px 16px 15px;
  border-radius: 16px;
  border: 1px solid transparent;
  box-shadow: 0 10px 28px rgba(20, 32, 27, 0.06);
  animation: notice-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  position: relative;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.notice.is-leaving {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
}

@keyframes notice-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.notice-toast {
  box-shadow:
    0 14px 36px rgba(20, 32, 27, 0.10),
    0 2px 0 rgba(255, 255, 255, 0.55) inset;
}

.notice-inline {
  max-width: none;
  margin: 0 0 14px;
}

.save-notice-slot:empty {
  display: none;
}

.notice-dismiss {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: -2px -4px 0 0;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 32, 27, 0.06);
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.72;
}

.notice-dismiss:hover {
  opacity: 1;
  background: rgba(20, 32, 27, 0.1);
}

.notice-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  position: relative;
  margin-top: 1px;
}

.notice-mark::before,
.notice-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
}

.notice-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.notice-title {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.notice-detail {
  margin: 6px 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0.92;
}

.notice-ok {
  background: linear-gradient(135deg, #e8f7ee 0%, #f4fbf6 100%);
  border-color: rgba(27, 107, 58, 0.18);
  color: #14532d;
}

.notice-ok .notice-mark {
  background: linear-gradient(145deg, #1b6b3a, #0b6b4f);
  box-shadow: 0 6px 14px rgba(27, 107, 58, 0.25);
}

.notice-ok .notice-mark::before {
  width: 12px;
  height: 7px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: translate(1px, -1px) rotate(-45deg);
  inset: 0;
}

.notice-err {
  background: linear-gradient(135deg, #fff5f4 0%, #fffaf8 55%, #fff1e7 100%);
  border-color: rgba(196, 92, 38, 0.22);
  color: #7a1f2a;
}

.notice-err .notice-mark {
  background: linear-gradient(145deg, #c45c26, #8f1d2c);
  box-shadow: 0 6px 14px rgba(143, 29, 44, 0.22);
}

.notice-err .notice-mark::before,
.notice-err .notice-mark::after {
  width: 14px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
}

.notice-err .notice-mark::before { transform: rotate(45deg); }
.notice-err .notice-mark::after { transform: rotate(-45deg); }

.notice-warn {
  background: linear-gradient(135deg, #fff7ed 0%, #fffbf5 100%);
  border-color: rgba(154, 52, 18, 0.2);
  color: #9a3412;
}

.notice-warn .notice-mark {
  background: linear-gradient(145deg, #c45c26, #9a3412);
  box-shadow: 0 6px 14px rgba(196, 92, 38, 0.22);
}

.notice-warn .notice-mark::before {
  width: 3px;
  height: 12px;
  background: #fff;
  border-radius: 2px;
  top: 8px;
  bottom: auto;
}

.notice-warn .notice-mark::after {
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  top: 22px;
  bottom: auto;
}

.row-held { background: var(--warn-bg); }
.muted { color: var(--muted); }

.login-shell {
  max-width: 520px;
  margin: 8vh auto 0;
}

.home-shell {
  max-width: 480px;
  margin: 6vh auto 0;
  padding-bottom: 48px;
}

.home-hero {
  text-align: center;
  margin-bottom: 22px;
}

.home-hero .brand-mark {
  margin: 0 auto 16px;
}

.home-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 12px;
}

.home-lead {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.home-card {
  padding: 26px 24px;
}

.home-card h2 {
  text-align: center;
}

.home-card .sub {
  text-align: center;
}

.login-shell .card {
  padding: 24px;
}

.foot-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

.profile-wrap { max-width: none; }

.profile-shell {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding-left: clamp(2px, 0.4vw, 6px);
  padding-right: clamp(2px, 0.4vw, 6px);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  padding-bottom: 6px;
  margin: 0 auto;
}

.profile-rails {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(0, 680px) minmax(210px, 1fr);
  grid-template-areas: "left mid right";
  gap: 4px;
  align-items: stretch;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  justify-content: center;
}

.profile-rail {
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-rail-left { grid-area: left; }
.profile-rail-mid { grid-area: mid; }
.profile-rail-right { grid-area: right; }

.profile-rail-left,
.profile-rail-right {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.profile-rail-mid {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  padding-bottom: 28px;
  display: block;
  min-height: 0;
}

.profile-rail-mid .profile-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.req-star {
  color: #b42318;
  font-weight: 700;
}

.pay-options-stack {
  grid-template-columns: 1fr;
}

.desk-top,
.desk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

.desk-top-side {
  display: grid;
  gap: 16px;
}

.desk-top .card,
.desk-grid .card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.desk-grid .card > .grid,
.desk-grid .card > form {
  flex: 1;
}

.desk-span-2 {
  grid-column: 1 / -1;
}

.desk-card-head {
  margin-bottom: 4px;
}

.desk-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 4px;
}

.pay-setup-card {
  background:
    linear-gradient(165deg, rgba(11, 107, 79, 0.08), transparent 42%),
    var(--card);
  border-color: rgba(11, 107, 79, 0.18);
  min-height: 100%;
}

.pay-setup-card .eyebrow {
  margin-bottom: 6px;
}

.pay-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pay-option {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.72);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--ink);
}

.pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-option:hover {
  border-color: rgba(11, 107, 79, 0.35);
}

.pay-option.is-active {
  border-color: rgba(11, 107, 79, 0.55);
  background: rgba(11, 107, 79, 0.08);
  box-shadow: inset 0 0 0 1px rgba(11, 107, 79, 0.18);
}

.pay-option-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--ink);
}

.pay-option-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.pay-option.is-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.pay-option.is-toggle input {
  position: static;
  opacity: 1;
  pointer-events: auto;
  width: auto;
}

.pay-field[hidden] {
  display: none !important;
}

.password-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.password-actions {
  grid-column: 1 / -1;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  margin: 0;
}

.check-row input {
  width: auto;
}

.admin-settings {
  margin-bottom: 18px;
}

.admin-shell {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding-left: clamp(2px, 0.4vw, 6px);
  padding-right: clamp(2px, 0.4vw, 6px);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  padding-bottom: 6px;
  margin: 0 auto;
}

.admin-header {
  max-width: none;
  width: 100%;
  margin: 0 0 12px;
  text-align: left;
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 30;
}

.admin-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.9);
  box-shadow: var(--shadow);
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
}

.admin-header-left .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.admin-header-titles {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-header-titles h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  white-space: nowrap;
}

.admin-header-nav {
  justify-content: flex-end;
  margin: 0;
  width: auto;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  flex: 1 1 auto;
}

.admin-header-nav .btn,
.admin-header-nav button {
  white-space: nowrap;
  padding: 7px 10px;
  font-size: 0.84rem;
}

.admin-header-nav .is-active-nav {
  background: rgba(11, 107, 79, 0.12);
  color: var(--accent);
}
.admin-header-nav .btn {
  position: relative;
}
.nav-chat-badge {
  display: none;
  margin-left: 5px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c45c26;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nav-chat-badge.is-on { display: inline-flex; }

.admin-meta-pill {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 252, 247, 0.7);
  white-space: nowrap;
}

.admin-meta-pill.is-ready {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: transparent;
}

@media (max-width: 900px) {
  .admin-header-bar {
    flex-wrap: wrap;
  }
  .admin-header-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

.admin-flash {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  flex: 0 0 auto;
}

.admin-rails {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(0, 720px) minmax(230px, 1fr);
  grid-template-areas: "left mid right";
  gap: 4px;
  align-items: stretch;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  justify-content: center;
}

.admin-rail {
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.admin-rail-left { grid-area: left; }
.admin-rail-mid { grid-area: mid; }
.admin-rail-right { grid-area: right; }

.admin-rail-left,
.admin-rail-right {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.admin-rail-mid {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  padding-bottom: 28px;
  min-height: 0;
}

.admin-rail-mid .stats-5 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-approved-card {
  margin-bottom: 0;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.portal-approved-scroll {
  max-height: none;
  overflow: visible;
}

.admin-menu {
  margin: 0;
}

.admin-rail-left .admin-option-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.admin-rail-left .admin-option-side {
  width: 100%;
  justify-content: space-between;
}

.admin-rail-left .admin-actions-bar {
  flex-direction: column;
}

.admin-rail-left .admin-actions-bar button {
  width: 100%;
  min-width: 0;
}

.payment-log-card .search-bar {
  margin-bottom: 12px;
}

.payment-log-table td {
  vertical-align: top;
  font-size: 0.88rem;
}

.payment-log-table .pill.warn {
  background: var(--warn-bg);
  color: var(--warn);
}


.user-view-card h3 {
  margin: 0;
  font-size: 1rem;
}

.user-view-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.user-history-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.user-history-block h3 {
  margin: 0;
  font-size: 1rem;
}

.user-hist-scroll {
  max-height: 260px !important;
  overflow: auto !important;
}

.user-hist-table {
  font-size: 0.86rem;
}

.user-hist-table th,
.user-hist-table td {
  vertical-align: top;
}

.compact-hist {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.user-view-block .portal-approved-scroll {
  max-height: none;
  overflow: visible;
}

.user-saved-scroll {
  max-height: none !important;
  overflow: visible !important;
}

.row-waiting {
  background: rgba(196, 92, 38, 0.05);
}

.pay-status-box {
  margin: 8px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.pay-quick-card {
  margin-bottom: 14px;
}

.pay-quick-card .sub {
  margin-bottom: 4px;
}

.pay-status-box .btn {
  justify-self: start;
}
.pay-status-box form {
  display: inline-flex;
  margin: 0;
  gap: 6px;
}
.pay-status-box form + form {
  margin-left: 0;
}

.pay-status-box.is-ok {
  background: rgba(27, 107, 58, 0.08);
  border-color: rgba(27, 107, 58, 0.22);
}

.pay-status-box.is-missing {
  background: rgba(154, 52, 18, 0.08);
  border-color: rgba(154, 52, 18, 0.22);
}

.pay-status-copy {
  display: grid;
  gap: 2px;
  font-size: 0.9rem;
}

.admin-rail-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden; /* Users list scrolls inside .user-list-scroll */
  padding-bottom: 8px;
}

.admin-rail-left .card,
.admin-rail-right .card,
.profile-rail-left .card,
.profile-rail-right .card {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 14px;
}

.admin-rail-right .card,
.profile-rail-right .card {
  padding: 6px 7px;
  margin-bottom: 4px;
  border-radius: 10px;
}

.admin-rail-left .section-head,
.admin-rail-right .section-head,
.profile-rail-left .section-head,
.profile-rail-right .section-head {
  margin-bottom: 6px;
  gap: 6px;
}

.admin-rail-right .section-head,
.profile-rail-right .section-head {
  margin-bottom: 2px;
  gap: 3px;
}

.admin-rail-left .section-head h2,
.admin-rail-right .section-head h2,
.profile-rail-left .section-head h2,
.profile-rail-right .section-head h2 {
  font-size: 1.02rem;
}

.admin-rail-left .sub,
.admin-rail-right .sub,
.profile-rail-left .sub,
.profile-rail-right .sub {
  margin-bottom: 8px;
  font-size: 0.86rem;
  line-height: 1.35;
}

.admin-rail-right .sub,
.profile-rail-right .sub {
  margin-bottom: 3px;
  font-size: 0.8rem;
  line-height: 1.25;
}

.admin-rail-left .user-view-block,
.admin-rail-right .user-view-block {
  margin-top: 10px;
  padding-top: 8px;
}

.admin-rail-right .user-view-block,
.admin-rail-right .user-history-block,
.profile-rail-right .user-view-block,
.profile-rail-right .user-history-block {
  margin-top: 5px;
  padding-top: 4px;
}

.admin-rail-right .pay-status-box,
.profile-rail-right .pay-status-box {
  margin: 2px 0 1px;
  padding: 6px 7px;
  gap: 3px;
  border-radius: 8px;
}

.admin-rail-right .pay-status-copy,
.profile-rail-right .pay-status-copy {
  font-size: 0.8rem;
  gap: 0;
}

.user-list-card {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-list-search {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
}

.user-list-search label {
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.user-list-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: none;
}

.user-list-compact td {
  vertical-align: top;
  padding-top: 7px;
  padding-bottom: 7px;
  padding-left: 8px;
  padding-right: 8px;
}

.user-list-compact .approve-cell-title {
  font-size: 0.88rem;
}

.user-list-compact .approve-cell-meta {
  font-size: 0.78rem;
  line-height: 1.3;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.admin-user-actions .btn,
.admin-user-actions a.btn {
  padding: 5px 8px;
  font-size: 0.78rem;
}

.admin-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 68px;
}

.admin-actions form {
  margin: 0;
  display: block;
}

.admin-actions button,
.admin-actions .btn {
  width: 100%;
  white-space: nowrap;
}

.admin-rail-right .portal-approved-card th,
.admin-rail-right .portal-approved-card td,
.admin-rail-right .user-view-card th,
.admin-rail-right .user-view-card td {
  padding: 4px 3px;
}

.admin-rail-right .portal-approved-card table,
.admin-rail-right .user-view-card table {
  font-size: 0.78rem;
}

.admin-rail-right .table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.admin-rail-right .user-hist-table th,
.admin-rail-right .user-hist-table td,
.profile-rail-right .user-hist-table th,
.profile-rail-right .user-hist-table td {
  padding: 3px 2px;
}

.admin-rail-right .user-hist-scroll,
.profile-rail-right .user-hist-scroll {
  max-height: 180px !important;
}

.user-pass-card {
  padding: 7px 8px;
  max-width: 100%;
}

.user-pass-card h2 {
  font-size: 1rem;
  margin: 0;
}

.user-pass-form {
  gap: 6px;
}

.user-pass-form button {
  width: 100%;
}

.pass-user-line {
  margin-bottom: 6px !important;
  font-size: 0.9rem;
}

html:has(.admin-shell),
html:has(.profile-shell) {
  height: 100%;
  overflow: hidden;
}

body:has(.admin-shell),
body:has(.profile-shell) {
  height: 100%;
  overflow: hidden;
}

.admin-menu .section-head {
  margin-bottom: 12px;
}

.admin-option-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.92);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-option-row:hover {
  border-color: rgba(11, 107, 79, 0.35);
  background: rgba(11, 107, 79, 0.06);
}

.admin-option-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-option-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.admin-option-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.admin-option-copy {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.admin-option-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.admin-option-meta {
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.admin-option-meta.is-ready {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: transparent;
}

.admin-option-arrow {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
}

.admin-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-actions-bar form {
  margin: 0;
}

.admin-actions-bar button {
  width: auto;
  min-width: 140px;
}

.admin-page {
  max-width: 720px;
  margin: 0 auto 24px;
}

.admin-back {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
}

.admin-back:hover {
  color: var(--ink);
}

.admin-page-card {
  margin-bottom: 0;
}

.settings-page-bar {
  display: flex;
  align-items: center;
  margin: 0 0 10px;
}
.settings-hub .sub {
  margin-bottom: 14px;
}
.settings-menu {
  display: grid;
  gap: 10px;
}
.settings-menu-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px 40px 14px 14px;
  border: 1px solid rgba(11, 107, 79, 0.14);
  border-radius: 14px;
  background: linear-gradient(165deg, #fffdf9 0%, #f5faf7 100%);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.settings-menu-card:hover {
  border-color: rgba(11, 107, 79, 0.36);
  box-shadow: 0 10px 22px rgba(20, 40, 30, 0.08);
  transform: translateY(-1px);
}
.settings-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.settings-menu-eyebrow {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b6b4f;
}
.settings-menu-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
}
.settings-menu-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.4;
}
.settings-menu-go {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid #0b6b4f;
  border-bottom: 2px solid #0b6b4f;
  transform: translateY(-60%) rotate(-45deg);
  opacity: 0.55;
}
@media (min-width: 720px) {
  .settings-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Settings hub / subpages: no side rails (Users list is huge on mobile) */
.admin-shell--settings .admin-rails {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "mid";
}
.admin-shell--settings .admin-rail-left,
.admin-shell--settings .admin-rail-right {
  display: none !important;
}
.admin-shell--settings .admin-rail-mid {
  grid-area: mid;
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
}
.admin-shell--settings .settings-hub h2 {
  font-size: 1.35rem;
  margin: 0 0 4px;
}
.admin-shell--settings .settings-menu-card {
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.admin-shell--settings .settings-menu-top {
  flex-wrap: wrap;
  row-gap: 4px;
}
.admin-shell--settings .settings-page-bar {
  margin: 0 0 8px;
}
.admin-shell--settings .password-grid {
  grid-template-columns: 1fr;
}
.admin-shell--settings .desk-actions {
  flex-wrap: wrap;
  gap: 8px;
}
.admin-shell--settings .desk-actions .btn-primary,
.admin-shell--settings .desk-actions .btn-danger,
.admin-shell--settings .desk-actions button {
  min-height: 44px;
}

@media (max-width: 960px) {
  .admin-shell--settings .admin-rails {
    grid-template-columns: 1fr;
    grid-template-areas: "mid";
    gap: 0;
  }
  .admin-shell--settings .admin-rail-mid {
    max-width: none;
  }
  .admin-shell--settings .settings-hub {
    padding: 12px 12px 14px;
  }
  .admin-shell--settings .settings-hub h2 {
    font-size: 1.2rem;
  }
  .admin-shell--settings .settings-menu {
    gap: 8px;
  }
  .admin-shell--settings .settings-menu-card {
    padding: 12px 36px 12px 12px;
    border-radius: 12px;
  }
  .admin-shell--settings .settings-menu-title {
    font-size: 0.98rem;
  }
  .admin-shell--settings .settings-menu-desc {
    font-size: 0.8rem;
  }
  .admin-shell--settings .admin-page-card {
    padding: 12px;
  }
  .admin-shell--settings .pay-option {
    align-items: flex-start;
  }
}

.profile-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.profile-hero .brand { margin-bottom: 0; }

.eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.profile-stats .stat.accent {
  background: linear-gradient(160deg, rgba(11, 107, 79, 0.12), rgba(255, 252, 247, 0.95));
  border-color: rgba(11, 107, 79, 0.22);
}

.sync-line {
  margin: -4px 0 18px;
  font-size: 0.82rem;
}

.day-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.day-panel {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 20px;
  animation: rise 0.55s ease both;
}

.day-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
}

.day-today::before {
  background: linear-gradient(180deg, #12815f, #0b6b4f);
}

.day-tomorrow::before {
  background: linear-gradient(180deg, #d9783a, #c45c26);
}

.day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.day-kicker {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.day-panel h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.day-count {
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  background: rgba(11, 107, 79, 0.1);
  color: var(--accent);
}

.day-tomorrow .day-count {
  background: rgba(196, 92, 38, 0.12);
  color: var(--accent-2);
}

.day-copy {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.empty-soft {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(20, 32, 27, 0.18);
  background: rgba(255, 252, 247, 0.55);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.empty-soft strong {
  color: var(--ink);
  font-weight: 750;
}

.empty-soft.compact { padding: 12px 14px; }

.ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  background: #fffcf7;
  border: 1px solid var(--line);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.ticket:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 107, 79, 0.28);
  box-shadow: 0 8px 20px rgba(20, 32, 27, 0.06);
}

.ticket-list {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 720px);
  overflow: auto;
  padding-right: 2px;
}

.ticket-name {
  font-weight: 750;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.ticket-meta .dot { opacity: 0.5; }

.ticket-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: 0 0 auto;
}

.ticket-time {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.muted-ticket { opacity: 0.92; }

.work-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin-bottom: 16px;
}

.work-grid .card { margin-bottom: 0; }

.grid-passport {
  grid-template-columns: 1.1fr 1fr auto;
  align-items: end;
}

.grid-name {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.queue-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fffcf7;
  border: 1px solid var(--line);
}

.queue-list li > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.queue-actions,
.saved-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}

.queue-actions form,
.saved-row-actions form {
  margin: 0;
}

.btn-xs {
  padding: 7px 10px;
  font-size: 0.78rem;
  width: auto !important;
}

.details-card {
  padding: 0;
  overflow: hidden;
}

.details-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
}

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

.details-card[open] summary {
  border-bottom: 1px solid var(--line);
}

.details-card .table-wrap,
.details-card > p {
  margin: 0 16px 16px;
}

.details-card > p { padding-top: 4px; }

.name-card { margin-top: 0; }

.soft-card {
  background: rgba(255, 252, 247, 0.78);
}

.proof-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.proof-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafafa;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.proof-shot {
  display: block;
  background: #fafafa;
}

.proof-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 780 / 1580;
  object-fit: cover;
  object-position: top;
}

.proof-meta {
  display: none;
}

@media (max-width: 900px) {
  .proof-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 960px) {
  .stats,
  .stats-3,
  .stats-4,
  .stats-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3, .phone-row,
  .day-board, .work-grid, .desk-top, .desk-grid,
  .grid-passport, .grid-name, .password-grid,
  .pay-options,
  .search-bar { grid-template-columns: 1fr; }

  /* Mobile: natural page scroll (no cramped 3-column shell) */
  html:has(.admin-shell),
  html:has(.profile-shell),
  body:has(.admin-shell),
  body:has(.profile-shell) {
    height: auto;
    min-height: 100%;
    overflow: auto;
  }

  .admin-shell,
  .profile-shell {
    height: auto;
    max-height: none;
    min-height: 100dvh;
    overflow: visible;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 4px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .admin-header {
    position: sticky;
    top: 0;
    z-index: 40;
    margin-bottom: 4px;
  }

  .admin-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 12px;
  }

  .admin-header-left {
    width: 100%;
  }

  .admin-header-titles {
    flex-wrap: wrap;
    gap: 4px;
  }

  .admin-header-titles h1 {
    font-size: 1rem;
  }

  .admin-header-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 3px;
    padding-bottom: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .admin-header-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-header-nav .btn,
  .admin-header-nav button {
    flex: 0 0 auto;
    padding: 5px 8px;
    font-size: 0.74rem;
    border-radius: 999px;
  }

  .admin-flash {
    max-width: none;
    margin: 0 0 4px;
  }

  .notice {
    max-width: none;
    margin: 0 0 5px;
    padding: 8px 10px;
  }

  /* Profile: save → main → my list */
  .profile-rails {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "mid"
      "right";
    gap: 5px;
    overflow: visible;
    height: auto;
    min-height: 0;
  }

  /* Admin: main work first, then users / side */
  .admin-rails {
    grid-template-columns: 1fr;
    grid-template-areas:
      "mid"
      "left"
      "right";
    gap: 5px;
    overflow: visible;
    height: auto;
    min-height: 0;
  }

  .admin-rail,
  .profile-rail {
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .admin-rail-left,
  .admin-rail-right,
  .admin-rail-mid,
  .profile-rail-left,
  .profile-rail-right,
  .profile-rail-mid {
    overflow: visible;
    max-height: none;
    height: auto;
    padding-bottom: 0;
  }

  .admin-rail-mid .stats-5,
  .profile-rail-mid .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-pay-board,
  .day-board {
    grid-template-columns: 1fr;
  }

  .card,
  .list-card,
  .user-list-card,
  .portal-approved-card,
  .pay-setup-card,
  .admin-page-card {
    border-radius: 12px;
    padding: 9px 8px;
    margin-bottom: 5px;
  }

  .section-head {
    margin-bottom: 4px;
    gap: 4px;
  }

  .section-head h2 {
    font-size: 0.98rem;
  }

  .sub,
  .day-copy,
  .search-hint {
    margin-bottom: 4px !important;
    font-size: 0.76rem;
  }

  .stats,
  .profile-stats {
    gap: 4px;
    margin-bottom: 5px;
  }

  .stats .stat,
  .profile-stats .stat {
    padding: 6px 6px;
    border-radius: 10px;
  }

  .stats .stat b,
  .profile-stats .stat b {
    font-size: 1.1rem;
  }

  .stats .stat span,
  .profile-stats .stat span {
    font-size: 0.68rem;
  }

  .collect-search.card {
    padding: 8px;
    margin-bottom: 5px;
  }

  .day-board,
  .pay-board,
  .profile-pay-board {
    gap: 5px;
    margin-bottom: 5px;
  }

  .day-panel {
    padding: 8px;
    border-radius: 10px;
  }

  .day-panel h2 {
    font-size: 0.98rem;
  }

  .day-count {
    min-width: 28px;
    height: 28px;
    font-size: 0.92rem;
  }

  .ticket-list {
    gap: 4px;
  }

  .ticket {
    padding: 6px 7px;
    gap: 6px;
    border-radius: 9px;
    align-items: flex-start;
    flex-direction: column;
  }

  .ticket-name {
    font-size: 0.84rem;
  }

  .ticket-meta {
    font-size: 0.72rem;
  }

  .empty-soft {
    padding: 8px;
    font-size: 0.76rem;
  }

  .table-wrap,
  .portal-approved-scroll,
  .user-list-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-height: none;
  }

  .user-list-card,
  .portal-approved-card {
    max-height: none;
  }

  table {
    min-width: 0;
    width: 100%;
  }

  .user-list.user-list-compact {
    min-width: 0;
  }

  .table-wrap table th,
  .table-wrap table td {
    padding: 5px 5px;
    font-size: 0.78rem;
  }

  /* Board desktop denseness must not force 3 columns on phones */
  .admin-shell--board .admin-rails {
    grid-template-columns: 1fr;
    grid-template-areas:
      "mid"
      "left"
      "right";
  }

  .admin-shell--board .admin-rail-mid > .card.list-card .table-wrap {
    max-height: none;
  }

  .admin-shell--board .pay-board .ticket-list {
    max-height: none;
  }

  .ticket-side {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
  }

  .admin-option-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-actions-bar button {
    width: 100%;
  }

  .nav {
    border-radius: 18px;
    width: 100%;
  }

  button,
  .btn {
    width: 100%;
  }

  .nav .btn,
  .nav button,
  .btn-xs,
  .admin-header-nav .btn,
  .admin-header-nav button,
  .ticket-side .btn,
  .ticket-side button,
  .admin-actions .btn,
  .admin-actions button,
  .admin-user-actions .btn,
  .desk-actions .btn,
  .desk-actions button {
    width: auto;
  }

  .admin-header-bar .nav {
    width: auto;
    max-width: 100%;
  }

  .admin-actions,
  .admin-actions-bar {
    flex-wrap: wrap;
    gap: 4px;
  }

  .search-bar {
    gap: 4px;
  }

  .fb-feed {
    padding-left: 0;
    padding-right: 0;
    gap: 6px;
    padding-bottom: 12px;
  }

  .wrap {
    padding: 6px 4px 12px;
  }

  .home-shell {
    margin-top: 1vh;
    padding-bottom: 16px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .home-hero {
    margin-bottom: 10px;
  }

  .home-card {
    padding: 12px 10px;
  }

  .desk-top,
  .desk-grid {
    gap: 5px;
    margin-bottom: 5px;
  }

  .login-shell {
    padding: 14px 10px 24px;
  }

  .login-shell .card {
    padding: 14px 12px;
  }

  .phone-row {
    gap: 6px;
  }

  .proof-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .server-status-tabs {
    gap: 4px;
    margin-bottom: 6px;
  }

  .server-tab {
    padding: 5px 8px;
    font-size: 0.74rem;
  }

  label,
  .field label {
    margin-bottom: 2px;
  }

  .field,
  .form-row {
    margin-bottom: 6px;
  }

  input,
  select,
  textarea {
    padding: 8px 10px;
  }
}

@media (max-width: 520px) {
  .pay-options { grid-template-columns: 1fr; }

  .admin-shell,
  .profile-shell {
    padding-left: 1px;
    padding-right: 1px;
    padding-top: 2px;
    padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
  }

  .admin-header-bar {
    padding: 5px 6px;
    gap: 3px;
  }

  .admin-header-titles h1 {
    font-size: 0.92rem;
  }

  .admin-meta-pill {
    font-size: 0.62rem;
  }

  .stats .stat,
  .profile-stats .stat {
    padding: 5px 5px;
  }

  .proof-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  table {
    min-width: 0;
    font-size: 0.78rem;
  }

  .table-wrap table th,
  .table-wrap table td {
    padding: 4px 4px;
  }

  .approve-cell-title {
    font-size: 0.82rem;
  }

  .home-shell {
    padding-left: 4px;
    padding-right: 4px;
  }

  .home-hero h1 {
    font-size: 1.3rem;
  }

  .home-lead {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .card,
  .list-card,
  .home-card,
  .user-list-card,
  .portal-approved-card,
  .pay-setup-card,
  .admin-page-card {
    padding: 7px 6px;
    margin-bottom: 4px;
    border-radius: 10px;
  }

  .day-panel {
    padding: 6px;
  }

  .day-panel h2 {
    font-size: 0.94rem;
  }

  .day-copy {
    margin-bottom: 4px !important;
  }

  .stats .stat b,
  .profile-stats .stat b {
    font-size: 1.02rem;
  }

  .admin-rails,
  .profile-rails {
    gap: 4px;
  }

  .ticket {
    padding: 5px 6px;
  }

  .wrap {
    padding: 4px 2px 10px;
  }

  .login-shell {
    padding: 10px 8px 18px;
  }

  .login-shell .card {
    padding: 12px 10px;
  }

  .fb-compose {
    padding: 8px !important;
  }

  .fb-tool {
    padding: 8px 8px !important;
  }
}

/* Live chat widget */
.livechat {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 80;
  font-family: "Manrope", system-ui, sans-serif;
}
.livechat-fab {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, #0f8a66 0%, #0b6b4f 55%, #095a43 100%);
  box-shadow: 0 14px 34px rgba(11, 107, 79, 0.35), 0 2px 0 rgba(255,255,255,0.2) inset;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.livechat-fab:hover { transform: translateY(-2px) scale(1.03); }
.livechat.is-open .livechat-fab { transform: scale(0.96); }
.livechat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c45c26;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(196, 92, 38, 0.35);
}
.livechat-badge.is-on { display: inline-flex; }
.livechat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(360px, calc(100vw - 24px));
  height: min(520px, calc(100dvh - 110px));
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 252, 247, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(20, 32, 27, 0.18);
  animation: livechatIn 0.22s ease;
}
.livechat-panel[hidden] {
  display: none !important;
}
@keyframes livechatIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.livechat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px;
  background: linear-gradient(135deg, #0b6b4f, #0f8a66);
  color: #fff;
}
.livechat-head-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.livechat-back {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.livechat-back[hidden] {
  display: none !important;
}
.livechat-compose[hidden] {
  display: none !important;
}
.livechat-inbox[hidden] {
  display: none !important;
}
.livechat-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 700;
}
.livechat-head h3 {
  margin: 2px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
}
.livechat-online {
  margin: 4px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}
.livechat-online::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.25);
  flex: 0 0 auto;
}
.livechat-online.is-empty::before {
  background: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}
.livechat-online[hidden] {
  display: none !important;
}
.cm-chat-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(11, 107, 79, 0.1);
  color: #0b6b4f;
  font-weight: 750;
}
.cm-chat-online::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.18);
}
.livechat-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.livechat-inbox {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: rgba(243, 239, 230, 0.55);
}
/* Admin inbox: list fills the panel; hide empty thread until a chat is opened */
.livechat-thread.is-admin:not(.is-chat-open) {
  display: none;
}
.livechat-thread.is-admin.is-chat-open {
  flex: 1;
  min-height: 0;
}
.livechat-thread-item {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(20,32,27,0.06);
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
  display: grid;
  gap: 2px;
}
.livechat-thread-item:hover,
.livechat-thread-item.is-active { background: rgba(11, 107, 79, 0.08); }
.livechat-thread-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}
.livechat-thread-unread {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-2);
  color: #fff;
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.livechat-thread-preview {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.livechat-thread {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.livechat-projects {
  flex: 0 0 auto;
  max-height: 38%;
  overflow: auto;
  padding: 8px 10px 10px;
  border-bottom: 1px solid rgba(20, 32, 27, 0.08);
  background: rgba(255, 252, 247, 0.96);
  display: grid;
  gap: 6px;
}
.livechat-projects[hidden] {
  display: none !important;
}
.livechat-projects-head {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.livechat-proj-row {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(11, 107, 79, 0.07);
  display: grid;
  gap: 2px;
}
.livechat-proj-row-name {
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--ink);
}
.livechat-proj-row-meta {
  font-size: 0.72rem;
  color: #0b6b4f;
  font-weight: 650;
}
.livechat-proj-row-body {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
}
.livechat-proj-card {
  display: grid;
  gap: 4px;
}
.livechat-proj-kicker {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b6b4f;
}
.livechat-proj-title {
  font-size: 0.92rem;
  font-weight: 750;
}
.livechat-msgs {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(11,107,79,0.08), transparent 55%),
    #f7f4ee;
}
.livechat-empty,
.livechat-empty-soft {
  margin: auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 18px;
  line-height: 1.4;
}
.livechat-bubble {
  max-width: 82%;
  padding: 9px 12px 6px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(20,32,27,0.05);
}
.livechat-bubble.is-mine {
  align-self: flex-end;
  background: linear-gradient(145deg, #0f8a66, #0b6b4f);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.livechat-bubble.is-theirs {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.livechat-bubble.is-ai {
  border-color: rgba(11, 107, 79, 0.28);
  background: rgba(11, 107, 79, 0.06);
}
.livechat-bubble-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.livechat-bubble.is-new { animation: livechatBubble 0.2s ease; }
@keyframes livechatBubble {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.livechat-bubble-text {
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}
.livechat-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 650;
  word-break: break-all;
}
.livechat-bubble.is-mine .livechat-link {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.65);
}
.livechat-bubble.is-theirs .livechat-link,
.livechat-bubble.is-ai .livechat-link {
  color: #0b6b4f;
}
.livechat-link-preview {
  display: flex;
  gap: 0;
  margin: 8px 0 2px;
  max-width: min(280px, 78vw);
  overflow: hidden;
  border-radius: 14px;
  text-decoration: none !important;
  color: inherit;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 32, 27, 0.1);
  box-shadow: 0 4px 14px rgba(12, 40, 28, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.livechat-link-preview:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(12, 40, 28, 0.12);
}
.livechat-bubble.is-mine .livechat-link-preview {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
  color: #fff;
}
.livechat-link-preview.has-image {
  flex-direction: column;
}
.livechat-link-preview-media {
  display: block;
  max-height: 140px;
  overflow: hidden;
  background: rgba(12, 40, 28, 0.06);
}
.livechat-link-preview-media img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.livechat-link-preview-body {
  padding: 10px 12px 11px;
  min-width: 0;
}
.livechat-link-preview-site {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.livechat-link-preview-title {
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.livechat-link-preview-desc {
  margin-top: 4px;
  font-size: 0.74rem;
  line-height: 1.35;
  opacity: 0.82;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.livechat-link-preview.is-loading {
  opacity: 0.75;
}
.livechat-bubble-photo {
  display: block;
  margin: 0 0 6px;
  border-radius: 12px;
  overflow: hidden;
  max-width: min(240px, 72vw);
  border: 1px solid rgba(20, 32, 27, 0.08);
}
.livechat-bubble-photo img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.livechat-bubble-time {
  font-size: 0.68rem;
  opacity: 0.72;
  white-space: nowrap;
}
.livechat-bubble-meta {
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px 6px;
  flex-wrap: nowrap;
  font-size: 0.68rem;
  min-width: 0;
  width: 100%;
}
.livechat-bubble.is-theirs .livechat-bubble-meta,
.livechat-bubble.is-ai .livechat-bubble-meta {
  justify-content: flex-start;
}
.livechat-act {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.2;
  opacity: 0.78;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 6px;
  transition: opacity 0.12s ease, background 0.12s ease;
}
.livechat-act-ico {
  display: none;
}
.livechat-act:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}
.livechat-act:focus-visible {
  outline: 2px solid rgba(11, 107, 79, 0.4);
  outline-offset: 1px;
}
.livechat-bubble.is-mine .livechat-act:hover {
  background: rgba(255, 255, 255, 0.18);
}
.livechat-del-btn {
  opacity: 0.7;
}
.livechat-del-btn:hover {
  opacity: 1;
  color: #ffe4e1;
}
.livechat-bubble.is-theirs .livechat-del-btn:hover,
.livechat-bubble.is-ai .livechat-del-btn:hover {
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
}
.livechat-edited {
  font-size: 0.66rem;
  opacity: 0.72;
  font-style: italic;
  white-space: nowrap;
}
.livechat-receipt {
  white-space: nowrap;
}
@media (max-width: 960px) {
  .livechat-bubble {
    max-width: 92%;
    padding: 9px 11px 7px;
  }
  .livechat-bubble-meta {
    gap: 0 4px;
  }
  .livechat-bubble-time,
  .livechat-edited,
  .livechat-receipt {
    font-size: 0.64rem;
  }
  .livechat-act {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    border-radius: 8px;
    opacity: 0.9;
  }
  .livechat-act-ico {
    display: block;
  }
  .livechat-act-txt {
    display: none;
  }
  .livechat-bubble.is-mine .livechat-act {
    background: rgba(255, 255, 255, 0.14);
  }
  .livechat-bubble.is-theirs .livechat-act,
  .livechat-bubble.is-ai .livechat-act {
    background: rgba(11, 107, 79, 0.08);
    color: #0b6b4f;
  }
  .livechat-bubble.is-theirs .livechat-del-btn,
  .livechat-bubble.is-ai .livechat-del-btn {
    color: #b42318;
    background: rgba(180, 35, 24, 0.08);
  }
  .livechat-bubble.is-mine .livechat-del-btn {
    color: #ffe4e1;
    background: rgba(255, 228, 225, 0.16);
  }
}
.livechat-bubble.is-deleted {
  opacity: 0.72;
}
.livechat-bubble-text.is-deleted-text {
  font-style: italic;
  opacity: 0.85;
}
.livechat-quote {
  display: grid;
  gap: 2px;
  width: 100%;
  margin: 0 0 6px;
  padding: 6px 8px;
  border: 0;
  border-left: 3px solid rgba(11, 107, 79, 0.55);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.livechat-bubble.is-mine .livechat-quote {
  background: rgba(255, 255, 255, 0.16);
  border-left-color: rgba(255, 255, 255, 0.7);
}
.livechat-quote-who {
  font-size: 0.7rem;
  font-weight: 750;
  opacity: 0.9;
}
.livechat-quote-text {
  font-size: 0.74rem;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.livechat-bubble.is-jump {
  outline: 2px solid rgba(11, 107, 79, 0.45);
  outline-offset: 2px;
}
.livechat-reply-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(11, 107, 79, 0.08);
  border-left: 3px solid #0b6b4f;
}
.livechat-reply-bar[hidden] {
  display: none !important;
}
.livechat-reply-bar-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}
.livechat-reply-bar-who {
  font-size: 0.72rem;
  font-weight: 750;
  color: #0b6b4f;
}
.livechat-reply-bar-text {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.livechat-reply-bar-clear {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 32, 27, 0.12);
  color: #14201b;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.livechat-receipt {
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.78;
}
.livechat-receipt.is-seen {
  opacity: 1;
}
.livechat-bubble.is-mine .livechat-receipt.is-seen {
  color: #d8ffe8;
}
.livechat-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 16px 16px 16px 6px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}
.livechat-typing[hidden] {
  display: none !important;
}
.livechat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0b6b4f;
  opacity: 0.35;
  animation: livechatTyping 1s ease-in-out infinite;
}
.livechat-typing span:nth-child(2) { animation-delay: 0.15s; }
.livechat-typing span:nth-child(3) { animation-delay: 0.3s; }
.livechat-typing em {
  font-style: normal;
}
@keyframes livechatTyping {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
.livechat-thread-item.is-typing .livechat-thread-preview {
  color: #0b6b4f;
  font-weight: 700;
}
.livechat-compose {
  display: block;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--line);
  background: rgba(255,252,247,0.96);
}
.livechat-compose-main {
  display: grid;
  gap: 6px;
}
.livechat-also-live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.livechat-also-live[hidden] {
  display: none !important;
}
.livechat-also-live input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.livechat-to-live {
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: rgba(11, 107, 79, 0.12);
  color: #0b6b4f;
}
.livechat-bubble.is-mine .livechat-to-live {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.livechat-to-live:hover {
  filter: brightness(1.05);
}
.livechat-to-live.is-done,
.livechat-to-live:disabled {
  cursor: default;
  opacity: 0.85;
}
.livechat-compose-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.livechat-attach {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0b6b4f;
  background: rgba(11, 107, 79, 0.08);
  cursor: pointer;
  flex: 0 0 auto;
}
.livechat-attach:hover {
  background: rgba(11, 107, 79, 0.14);
}
.livechat-attach-preview {
  position: relative;
  width: fit-content;
  max-width: 100%;
}
.livechat-attach-preview[hidden] {
  display: none !important;
}
.livechat-attach-preview img {
  display: block;
  max-height: 88px;
  max-width: min(180px, 60vw);
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: cover;
}
.livechat-attach-clear {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #14201b;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.livechat-compose input[type="text"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 14px;
  font: inherit;
  background: #fff;
}
.livechat-compose input[type="text"]:focus {
  outline: none;
  border-color: rgba(11,107,79,0.45);
  box-shadow: 0 0 0 3px rgba(11,107,79,0.12);
}
.livechat-send {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #0b6b4f;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.livechat-send:disabled {
  opacity: 0.55;
  cursor: wait;
}
.livechat-fab,
.livechat-send,
.livechat-close,
.livechat-back,
.livechat-thread-item {
  width: auto;
}
.livechat-fab { width: 58px; }
.livechat-send { width: 44px; }
.livechat-thread-item { width: 100%; }
@media (max-width: 960px) {
  html.livechat-sheet-open,
  html.livechat-sheet-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
  }
  .livechat {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    z-index: 120;
  }
  .livechat-fab {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: auto;
    width: 54px;
    height: 54px;
    margin: 0;
    z-index: 121;
  }
  .livechat.is-open .livechat-fab {
    display: none;
  }
  .livechat-panel {
    position: fixed;
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    height: 100svh;
    max-height: 100dvh;
    max-height: 100svh;
    border-radius: 0;
    z-index: 122;
    animation: none;
  }
  .livechat-head {
    padding: 10px 12px calc(10px + env(safe-area-inset-top, 0px) * 0);
    padding-top: max(10px, env(safe-area-inset-top, 0px));
  }
  .livechat-head h3 {
    font-size: 1.02rem;
    max-width: 70vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .livechat-inbox {
    -webkit-overflow-scrolling: touch;
  }
  .livechat-msgs {
    padding: 12px 10px;
    -webkit-overflow-scrolling: touch;
  }
  .livechat-bubble {
    max-width: 88%;
  }
  .livechat-compose {
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .livechat-compose-row {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .livechat-compose input[type="text"] {
    min-width: 0;
    flex: 1;
    padding: 12px 12px;
    font-size: 16px; /* prevent iOS zoom */
  }
  .livechat-attach,
  .livechat-send {
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
  }
  .livechat-projects {
    max-height: 28%;
    padding: 8px 10px;
  }
  .livechat-thread-item {
    padding: 12px 14px;
    min-height: 52px;
  }
}

@media (max-width: 520px) {
  .livechat-fab {
    width: 52px;
    height: 52px;
  }
}

/* Admin / profile Chat pages: focus mid column (no giant side rails) */
.admin-shell--chat .admin-rails,
.profile-shell--chat .profile-rails {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "mid";
}
.admin-shell--chat .admin-rail-left,
.admin-shell--chat .admin-rail-right,
.profile-shell--chat .profile-rail-left,
.profile-shell--chat .profile-rail-right {
  display: none !important;
}
.admin-shell--chat .admin-rail-mid,
.profile-shell--chat .profile-rail-mid {
  grid-area: mid;
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
}
@media (max-width: 960px) {
  .admin-shell--chat .admin-rails,
  .profile-shell--chat .profile-rails {
    grid-template-columns: 1fr;
    grid-template-areas: "mid";
    gap: 0;
  }
  .admin-shell--chat .admin-rail-mid,
  .profile-shell--chat .profile-rail-mid {
    max-width: none;
  }
  .admin-shell--chat .cm-chat--page,
  .profile-shell--chat .cm-chat--page {
    padding: 12px 12px calc(88px + env(safe-area-inset-bottom, 0px));
    border-radius: 14px;
  }
  .admin-shell--chat .cm-chat-list,
  .admin-shell--chat .cm-chat--page .cm-chat-list {
    max-height: min(58dvh, 520px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cm-person {
    min-height: 52px;
    padding: 11px 10px;
  }
  .cm-chat-search input {
    font-size: 16px;
    min-height: 44px;
  }
  .cm-broadcast textarea {
    font-size: 16px;
  }
}

/* —— Facebook-style Feed (mid column only; keep left/right rails) —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fb-feed {
  --feed-ink: #14201b;
  --feed-muted: #5c6b63;
  --feed-line: rgba(20, 32, 27, 0.12);
  --feed-soft: #e8f2ed;
  --feed-soft-2: #dceae3;
  --feed-card: #fffcf7;
  --feed-accent: #0b6b4f;
  --feed-accent-hover: #095a42;
  --feed-accent-2: #c45c26;
  --feed-shadow: 0 10px 28px rgba(20, 32, 27, 0.08);
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--feed-ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.fb-card {
  background: var(--feed-card);
  border-radius: 14px;
  box-shadow: var(--feed-shadow);
  border: 1px solid var(--feed-line);
}

.fb-compose {
  padding: 12px 14px 10px;
}
.fb-compose-divider {
  height: 1px;
  background: var(--feed-line);
  margin: 10px 0 8px;
}
.fb-compose-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}
.fb-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--feed-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  flex: 0 0 auto;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.fb-tool:hover {
  background: var(--feed-soft);
}
.fb-tool-btn { cursor: pointer; }
.fb-ico {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
}
.fb-ico-photo { background: linear-gradient(135deg, #1b8a5a, #0b6b4f); }
.fb-ico-feel { background: linear-gradient(135deg, #d97706, #c45c26); }
.fb-ico-poll { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.fb-tool-btn.is-on {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.fb-poll-builder {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f4faf7, #eef6f1);
  border: 1px solid rgba(11, 107, 79, 0.12);
}
.fb-poll-builder[hidden] { display: none !important; }
.fb-poll-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.fb-poll-builder-head strong {
  font-size: 0.95rem;
  color: var(--feed-ink);
}
.fb-poll-close {
  border: 0;
  background: rgba(0,0,0,0.06);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.fb-poll-hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--feed-muted);
}
.fb-poll-options {
  display: grid;
  gap: 8px;
}
.fb-poll-opt-input {
  width: 100%;
  border: 1px solid rgba(20, 32, 27, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.fb-poll-opt-input:focus {
  outline: 2px solid rgba(11, 107, 79, 0.28);
  border-color: rgba(11, 107, 79, 0.35);
}
.fb-poll-add {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #0b6b4f;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
}
.fb-poll-add:hover { text-decoration: underline; }

.fb-link {
  color: #0b6b4f;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(11, 107, 79, 0.35);
  word-break: break-all;
  transition: color 0.12s ease, text-decoration-color 0.12s ease;
}
.fb-link:hover {
  color: #085a42;
  text-decoration-color: rgba(11, 107, 79, 0.7);
}
.fb-link-preview-slot {
  margin: 2px 16px 14px;
  max-width: calc(100% - 32px);
  width: auto;
  box-sizing: border-box;
  min-width: 0;
  display: block;
  overflow: hidden;
}
.fb-link-preview-slot > .fb-link-preview {
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
.fb-link-preview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none !important;
  color: inherit;
  background:
    linear-gradient(145deg, #fffefb 0%, #f7faf8 55%, #eef6f1 100%);
  border: 1px solid rgba(11, 107, 79, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 8px 24px rgba(12, 40, 28, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.fb-link-preview.has-image {
  grid-template-columns: minmax(0, 148px) minmax(0, 1fr);
}
.fb-link-preview.no-image {
  grid-template-columns: minmax(0, 88px) minmax(0, 1fr);
}
.fb-link-preview:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 107, 79, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 32px rgba(12, 40, 28, 0.12);
}
.fb-link-preview-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #1b8a5a, #0b6b4f 55%, #c4a574);
  z-index: 2;
  border-radius: 18px 0 0 18px;
}
.fb-link-preview-media {
  position: relative;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(27, 138, 90, 0.18), transparent 55%),
    #dceee4;
  overflow: hidden;
  min-height: 112px;
}
.fb-link-preview.has-image .fb-link-preview-media {
  min-height: 100%;
}
.fb-link-preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 128px;
  max-height: 168px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.fb-link-preview:hover .fb-link-preview-media img {
  transform: scale(1.04);
}
.fb-link-preview-media--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  background:
    linear-gradient(145deg, #1b8a5a, #0c3d28);
}
.fb-link-preview-media--fallback span {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.fb-link-preview-body {
  padding: 14px 16px 15px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 4px;
}
.fb-link-preview-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 2px;
}
.fb-link-preview-favicon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0b6b4f;
  background: rgba(11, 107, 79, 0.12);
  border: 1px solid rgba(11, 107, 79, 0.14);
}
.fb-link-preview-site {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b746e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-link-preview-title {
  font-size: 1.02rem;
  font-weight: 780;
  line-height: 1.3;
  color: #14201b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fb-link-preview-desc {
  font-size: 0.84rem;
  line-height: 1.4;
  color: #5f6a64;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fb-link-preview-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
  color: #0b6b4f;
  background: rgba(11, 107, 79, 0.1);
  border: 1px solid rgba(11, 107, 79, 0.14);
  transition: background 0.12s ease, color 0.12s ease;
}
.fb-link-preview:hover .fb-link-preview-cta {
  background: #0b6b4f;
  color: #fff;
  border-color: #0b6b4f;
}
.fb-link-preview.is-loading {
  pointer-events: none;
}
.fb-link-preview-media--skel,
.fb-link-preview-skel {
  background: linear-gradient(90deg, #e8f0eb 0%, #f4f8f5 45%, #e8f0eb 100%);
  background-size: 200% 100%;
  animation: fbLinkShimmer 1.2s ease-in-out infinite;
}
.fb-link-preview-media--skel {
  min-height: 112px;
}
.fb-link-preview-skel {
  height: 12px;
  border-radius: 8px;
  margin-top: 8px;
}
.fb-link-preview-skel--sm { width: 36%; height: 10px; margin-top: 0; }
.fb-link-preview-skel--lg { width: 88%; height: 16px; }
.fb-link-preview-skel--md { width: 64%; }
@keyframes fbLinkShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (max-width: 720px) {
  .fb-link-preview-slot {
    margin: 2px 8px 12px !important;
    max-width: calc(100% - 16px) !important;
    width: auto !important;
    display: block !important;
    overflow: hidden !important;
  }
  .fb-link-preview-slot > .fb-link-preview,
  .fb-link-preview {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .fb-link-preview-accent {
    width: 3px;
    border-radius: 14px 0 0 14px;
  }
  .fb-link-preview-media,
  .fb-link-preview.has-image .fb-link-preview-media {
    width: 100% !important;
    min-height: 0 !important;
    flex: 0 0 auto;
  }
  .fb-link-preview-media img {
    width: 100% !important;
    height: auto !important;
    max-height: 160px !important;
    min-height: 120px !important;
    object-fit: cover !important;
  }
  .fb-link-preview-media--fallback {
    min-height: 72px !important;
    width: 100% !important;
  }
  .fb-link-preview-media--fallback span {
    font-size: 1.55rem;
  }
  .fb-link-preview-body {
    padding: 12px !important;
    gap: 3px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  .fb-link-preview-title {
    font-size: 0.95rem !important;
    word-break: break-word;
  }
  .fb-link-preview-desc {
    font-size: 0.8rem !important;
    -webkit-line-clamp: 2;
  }
  .fb-link-preview-cta {
    margin-top: 6px;
    padding: 7px 12px;
    font-size: 0.72rem;
  }
  .fb-link-preview:hover {
    transform: none !important;
  }
  .fb-link-preview:hover .fb-link-preview-media img {
    transform: none !important;
  }
  .fb-poll {
    margin: 0 8px 12px !important;
    padding: 12px;
    border-radius: 14px;
  }
  .fb-poll-vote-btn {
    padding: 11px 12px;
    font-size: 0.92rem;
  }
  .fb-poll-row-inner {
    padding: 11px 12px;
  }
  .fb-poll-builder {
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
  }
  .fb-post-body.is-poll-q {
    font-size: 1.05rem;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 560px) {
  .fb-link-preview-slot {
    margin: 0 6px 10px !important;
    max-width: calc(100% - 12px) !important;
  }
  .fb-link-preview-media img {
    max-height: 140px !important;
    min-height: 110px !important;
  }
}

.fb-post-body.is-poll-q {
  font-size: 1.15rem;
  font-weight: 650;
}
.fb-poll {
  margin: 0 16px 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(165deg, #f7fbf9 0%, #eef6f2 100%);
  border: 1px solid rgba(11, 107, 79, 0.12);
}
.fb-poll-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.fb-poll-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.fb-poll-list {
  display: grid;
  gap: 8px;
}
.fb-poll-vote-btn {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(11, 107, 79, 0.18);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 650;
  color: var(--feed-ink);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}
.fb-poll-vote-btn:hover {
  border-color: rgba(11, 107, 79, 0.4);
  background: #f4faf7;
  transform: translateY(-1px);
}
.fb-poll-row {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(11, 107, 79, 0.12);
  min-height: 44px;
}
.fb-poll-row.is-mine {
  border-color: rgba(11, 107, 79, 0.35);
}
.fb-poll-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(27, 138, 90, 0.22), rgba(11, 107, 79, 0.12));
  border-radius: 14px;
  transition: width 0.35s ease;
}
.fb-poll-row-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}
.fb-poll-opt-label {
  font-weight: 650;
  color: var(--feed-ink);
}
.fb-poll-pct {
  font-weight: 800;
  color: #0b6b4f;
  font-size: 0.88rem;
}
.fb-poll-foot {
  margin: 10px 0 0;
  font-size: 0.8rem;
}

.fb-feeling-chip,
.fb-image-preview {
  margin: 10px 0 0;
  position: relative;
}
.fb-feeling-chip[hidden],
.fb-image-preview[hidden],
.fb-feeling-picker[hidden],
.fb-poll-builder[hidden] {
  display: none !important;
}
.fb-feeling-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--feed-soft);
  border-radius: 999px;
  padding: 6px 10px 6px 12px;
  font-size: 0.875rem;
  color: var(--feed-ink);
}
.fb-feeling-clear,
.fb-image-clear {
  border: 0;
  background: var(--feed-soft-2);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--feed-ink);
}
.fb-feeling-clear:hover,
.fb-image-clear:hover { background: #cfdcd5; }
.fb-image-preview img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--feed-soft);
}
.fb-image-clear {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(20, 32, 27, 0.55);
  color: #fff;
}
.fb-feeling-picker {
  margin-top: 10px;
  border: 1px solid var(--feed-line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.fb-feeling-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--feed-ink);
}
.fb-feeling-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.fb-feeling-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  color: var(--feed-ink);
}
.fb-feeling-opt:hover { background: var(--feed-soft); }
.fb-feeling-emoji { font-size: 1.25rem; line-height: 1; }

.fb-compose-editor {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.fb-compose-editor textarea {
  flex: 1;
  border: 0;
  border-radius: 18px;
  resize: vertical;
  min-height: 44px;
  max-height: 160px;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  background: var(--feed-soft);
  color: var(--feed-ink);
  padding: 10px 14px;
}
.fb-compose-editor textarea:focus {
  outline: none;
  background: var(--feed-soft-2);
}
.fb-compose-editor textarea::placeholder {
  color: var(--feed-muted);
}
.fb-compose-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  margin-top: 10px;
}
.fb-btn-post {
  border: 0;
  border-radius: 10px;
  background: var(--feed-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 8px 24px;
  cursor: pointer;
  min-width: 96px;
  flex: 0 0 auto;
}
.fb-btn-post:hover {
  background: var(--feed-accent-hover);
}

.fb-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(145deg, var(--feed-accent), #0a4f3c 70%, var(--feed-accent-2));
  text-decoration: none;
}
.fb-avatar-lg { width: 40px; height: 40px; }
.fb-avatar-sm { width: 32px; height: 32px; font-size: 0.85rem; }

.fb-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fb-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--feed-muted);
}
.fb-empty strong {
  display: block;
  color: var(--feed-ink);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.fb-post {
  padding: 12px 0 0;
  overflow: hidden;
}
.fb-post-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 16px 12px;
}
.fb-post-who {
  flex: 1;
  min-width: 0;
}
.fb-name {
  color: var(--feed-ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.fb-name:hover {
  text-decoration: underline;
}
.fb-post-sub {
  color: var(--feed-muted);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 1px;
}
.fb-globe {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--feed-muted);
  display: inline-block;
  position: relative;
  margin-left: 2px;
}
.fb-globe::after {
  content: "";
  position: absolute;
  inset: 2px 4px;
  border-left: 1px solid var(--feed-muted);
  border-right: 1px solid var(--feed-muted);
}

.fb-menu {
  position: relative;
}
.fb-menu summary {
  list-style: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--feed-muted);
  font-size: 1.25rem;
  letter-spacing: 1px;
  user-select: none;
}
.fb-menu summary::-webkit-details-marker { display: none; }
.fb-menu summary:hover { background: var(--feed-soft); }
.fb-menu-panel {
  position: absolute;
  right: 0;
  top: 40px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  min-width: 160px;
  z-index: 5;
  padding: 6px;
  display: grid;
  gap: 2px;
}
.fb-menu form {
  margin: 0;
}
.fb-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--feed-ink);
}
.fb-menu button:hover { background: var(--feed-soft); }

.fb-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  line-height: 1.3;
}
.fb-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #8a6116;
  background: #fff4d6;
  border: 1px solid #f0d48a;
  border-radius: 999px;
  padding: 1px 8px 2px;
  line-height: 1.4;
}
.fb-pin-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9850a;
  flex-shrink: 0;
}
.fb-post.is-pinned {
  box-shadow: inset 3px 0 0 #c9850a;
}
.fb-feeling-inline {
  color: var(--feed-ink);
  font-size: 0.9375rem;
  font-weight: 400;
}

.fb-post-body {
  padding: 4px 16px 12px;
  font-size: 1.1rem;
  line-height: 1.4;
  word-break: break-word;
}
.fb-post-body-text {
  word-break: break-word;
}
.fb-post-body.is-clampable:not(.is-expanded) .fb-post-body-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.fb-see-more {
  display: inline-block;
  margin-top: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--feed-muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.fb-see-more:hover {
  text-decoration: underline;
  color: var(--feed-ink);
}
.fb-post-media {
  margin: 0 0 4px;
  background: #1a2420;
}
.fb-media-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.fb-post-media img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #1a2420;
}
.fb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 14, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.fb-lightbox[hidden] {
  display: none !important;
}
.fb-lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.fb-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.fb-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}
body.fb-lightbox-open {
  overflow: hidden;
}

.fb-post-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  color: var(--feed-muted);
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--feed-line);
  margin: 0 12px;
}
.fb-stat-likes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
button.fb-stat-likes {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button.fb-stat-likes:hover {
  text-decoration: underline;
}
.fb-reactors {
  margin: 0 12px 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--feed-soft, rgba(11, 107, 79, 0.06));
  border: 1px solid var(--feed-line, rgba(20, 32, 27, 0.08));
}
.fb-reactors[hidden] {
  display: none !important;
}
.fb-reactors-title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--feed-muted, var(--muted));
}
.fb-reactors-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}
.fb-reactors-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}
.fb-reactor-emoji {
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
}
.fb-reactor-name {
  min-width: 0;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fb-stat-comments {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.fb-stat-comments:hover { text-decoration: underline; }
.fb-react-bubbles {
  display: inline-flex;
  align-items: center;
}
.fb-react-bubble {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  margin-left: -4px;
}
.fb-react-bubble:first-child { margin-left: 0; }
.fb-like-bubble {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--feed-accent);
  position: relative;
  box-shadow: 0 0 0 1px #fff;
}
.fb-like-bubble::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 6px;
  height: 8px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
}

.fb-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin: 4px 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--feed-line);
}
.fb-action-form { margin: 0; }
.fb-react-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.fb-react-wrap .fb-action-form { flex: 1; }
.fb-react-picker {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(6px);
  display: none;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid var(--feed-line);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.fb-react-wrap.is-picking .fb-react-picker {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.fb-react-pick {
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease;
}
.fb-react-pick:hover,
.fb-react-pick:focus-visible {
  transform: scale(1.35) translateY(-4px);
  outline: none;
}
.fb-react-emoji {
  font-size: 1.05rem;
  line-height: 1;
}
.fb-action {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 6px;
  color: var(--feed-muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}
.fb-action:hover { background: var(--feed-soft); }
.fb-action.is-liked,
.fb-action.is-liked .fb-action-label { color: var(--feed-accent); }
.fb-action.is-react-love,
.fb-action.is-react-love .fb-action-label { color: #f33e58; }
.fb-action.is-react-haha,
.fb-action.is-react-haha .fb-action-label,
.fb-action.is-react-wow,
.fb-action.is-react-wow .fb-action-label { color: #f7b928; }
.fb-action.is-react-sad,
.fb-action.is-react-sad .fb-action-label { color: #f7b928; }
.fb-action.is-react-angry,
.fb-action.is-react-angry .fb-action-label { color: #e9710f; }
.fb-action-ico {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 4px;
  display: inline-block;
  position: relative;
}
.fb-action.is-liked .fb-action-ico {
  background: var(--feed-accent);
  border-color: var(--feed-accent);
}
.fb-action.is-liked .fb-action-ico::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 6px;
  height: 8px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
}
.fb-ico-comment { border-radius: 50% 50% 50% 4px; }
.fb-ico-share {
  border: 0;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  width: 12px;
  height: 12px;
  transform: rotate(-45deg);
  margin-bottom: 2px;
}

.fb-comments {
  display: none;
  padding: 8px 16px 14px;
  flex-direction: column;
  gap: 10px;
}
.fb-comments.is-open { display: flex; }

.fb-comment {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.fb-comment-main {
  flex: 1;
  min-width: 0;
}
.fb-comment-bubble {
  background: var(--feed-soft);
  border-radius: 18px;
  padding: 8px 12px;
  max-width: 100%;
  font-size: 0.9375rem;
  line-height: 1.35;
  display: inline-block;
}
.fb-comment-bubble strong {
  display: block;
  font-size: 0.8125rem;
  margin-bottom: 2px;
}
.fb-comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 8px 0;
  font-size: 0.75rem;
  color: var(--feed-muted);
  font-weight: 600;
}
.fb-reply-btn,
.fb-reply-cancel {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--feed-muted);
  font: inherit;
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
}
.fb-reply-btn:hover,
.fb-reply-cancel:hover { text-decoration: underline; }
.fb-msg-btn {
  border: 0;
  background: rgba(11, 107, 79, 0.08);
  color: #0b6b4f;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
}
.fb-msg-btn:hover {
  background: rgba(11, 107, 79, 0.14);
}
.fb-replies {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fb-comment-reply .fb-avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

.fb-comment-form {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}
.fb-comment-input-wrap {
  flex: 1;
  min-width: 0;
}
.fb-replying {
  font-size: 0.75rem;
  color: var(--feed-muted);
  margin: 0 0 4px 4px;
}
.fb-comment-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  background: var(--feed-soft);
  border-radius: 18px;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--feed-ink);
}
.fb-comment-form input[type="text"]:focus {
  outline: none;
  background: var(--feed-soft-2);
}

@media (max-width: 720px) {
  .fb-feed {
    gap: 6px;
    max-width: none;
  }
  .fb-compose {
    padding: 8px 8px 8px;
  }
  .fb-compose-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .fb-compose-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 5px;
    flex: none;
  }
  .fb-tool {
    width: 100%;
    box-sizing: border-box;
    gap: 4px;
    padding: 9px 4px;
    background: var(--feed-soft);
    font-size: 0.72rem;
    border-radius: 9px;
    justify-content: center;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fb-tool:hover,
  .fb-tool:active {
    background: var(--feed-soft-2);
  }
  .fb-tool-btn.is-on {
    background: rgba(37, 99, 235, 0.14);
  }
  .fb-btn-post {
    width: 100%;
    min-width: 0;
    padding: 12px 16px;
  }
  .fb-feeling-grid {
    grid-template-columns: 1fr 1fr;
  }
  .fb-post-body {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 1.02rem;
  }
  .fb-link {
    font-size: 0.95em;
  }
}

/* Match notifications */
.notif-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.notif-bell {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffcf7;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.notif-bell:hover {
  border-color: rgba(11, 107, 79, 0.35);
}
.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c45c26;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
}
.notif-badge.is-on { display: inline-flex; }
.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(340px, calc(100vw - 24px));
  max-height: min(420px, 70vh);
  overflow: auto;
  background: #fffcf7;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(20, 32, 27, 0.14);
  z-index: 60;
  padding: 10px;
}
.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.notif-item {
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  margin-bottom: 6px;
}
.notif-item.is-unread {
  background: rgba(11, 107, 79, 0.06);
  border-color: rgba(11, 107, 79, 0.12);
}
.notif-item strong {
  display: block;
  font-size: 0.9rem;
}
.notif-item p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.35;
}
.notif-item time {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
}
.notif-empty {
  margin: 12px 6px;
  font-size: 0.88rem;
}
.notif-toasts {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 90;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 28px));
  pointer-events: none;
}
.notif-toast {
  background: #fffcf7;
  border: 1px solid rgba(11, 107, 79, 0.28);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 12px 28px rgba(20, 32, 27, 0.16);
  animation: notifIn 0.22s ease;
}
.notif-toast strong {
  display: block;
  font-size: 0.92rem;
}
.notif-toast p {
  margin: 4px 0 0;
  font-size: 0.84rem;
  line-height: 1.35;
}
.notif-toast.is-out {
  opacity: 0;
  transform: translateY(-8px);
  transition: 0.28s ease;
}
@keyframes notifIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

/* Paid/Unpaid board: denser mid + slightly wider center so lists fit */
.admin-shell--board .admin-rails {
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, min(1080px, 1.75fr)) minmax(180px, 0.8fr);
}

.admin-shell--board .admin-rail-mid {
  padding-right: 2px;
  padding-bottom: 12px;
}

.admin-shell--board .admin-rail-mid .profile-stats {
  gap: 8px;
  margin-bottom: 10px;
}

.admin-shell--board .admin-rail-mid .profile-stats .stat {
  padding: 10px 12px;
}

.admin-shell--board .admin-rail-mid .profile-stats .stat b {
  font-size: 1.35rem;
}

.admin-shell--board .admin-rail-mid .collect-search.card {
  margin-bottom: 10px;
  padding: 12px 14px;
}

.admin-shell--board .admin-rail-mid .collect-search .search-hint {
  margin: 4px 0 0;
  font-size: 0.78rem;
}

.admin-shell--board .admin-rail-mid > .card.list-card {
  margin-bottom: 10px;
  padding: 12px 14px;
}

.admin-shell--board .admin-rail-mid > .card.list-card .section-head {
  margin-bottom: 4px;
}

.admin-shell--board .admin-rail-mid > .card.list-card .section-head h2 {
  font-size: 1.05rem;
}

.admin-shell--board .admin-rail-mid > .card.list-card .sub {
  margin: 0 0 8px;
  font-size: 0.82rem;
}

.admin-shell--board .admin-rail-mid > .card.list-card .table-wrap {
  max-height: min(28vh, 260px);
  overflow: auto;
}

.admin-shell--board .admin-rail-mid .user-list td,
.admin-shell--board .admin-rail-mid .user-list th {
  padding: 6px 8px;
  font-size: 0.84rem;
}

.admin-shell--board .pay-board {
  gap: 10px;
  margin-bottom: 8px;
}

.admin-shell--board .pay-board .day-panel {
  padding: 12px 12px 10px;
  border-radius: 14px;
}

.admin-shell--board .pay-board .day-head {
  margin-bottom: 2px;
  gap: 8px;
}

.admin-shell--board .pay-board .day-panel h2 {
  font-size: 1.1rem;
}

.admin-shell--board .pay-board .day-kicker {
  margin-bottom: 2px;
  font-size: 0.7rem;
}

.admin-shell--board .pay-board .day-count {
  min-width: 34px;
  height: 34px;
  font-size: 1.05rem;
  border-radius: 10px;
}

.admin-shell--board .pay-board .day-copy {
  margin: 0 0 8px;
  font-size: 0.8rem;
  line-height: 1.35;
}

.admin-shell--board .pay-board .ticket-list {
  gap: 6px;
  max-height: min(52vh, 560px);
}

.admin-shell--board .pay-board .ticket {
  padding: 8px 10px;
  gap: 8px;
  border-radius: 10px;
}

.admin-shell--board .pay-board .ticket-name {
  font-size: 0.9rem;
  margin-bottom: 1px;
}

.admin-shell--board .pay-board .ticket-meta {
  font-size: 0.78rem;
  gap: 2px 5px;
}

.admin-shell--board .pay-board .ticket-side {
  gap: 4px;
}

.admin-shell--board .pay-board .empty-soft {
  padding: 10px 12px;
  font-size: 0.82rem;
}

@media (max-width: 1100px) and (min-width: 961px) {
  .admin-shell--board .admin-rails {
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.9fr) minmax(160px, 0.7fr);
  }
}

/* Phones: full-width mid (must win over tablet board rails) */
@media (max-width: 960px) {
  .admin-shell--board .admin-rails,
  .profile-shell--board .profile-rails {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .admin-shell--board,
  .profile-shell--board {
    padding-left: 8px;
    padding-right: 8px;
  }

  .admin-shell--board .admin-rail-mid,
  .profile-shell--board .profile-rail-mid {
    padding-right: 0;
    width: 100%;
    max-width: 100%;
  }

  .admin-shell--board .admin-rail-mid .profile-stats,
  .profile-shell--board .profile-rail-mid .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
  }

  .admin-shell--board .admin-rail-mid .profile-stats .stat,
  .profile-shell--board .profile-rail-mid .profile-stats .stat {
    padding: 8px 8px;
  }

  .admin-shell--board .admin-rail-mid .profile-stats .stat b,
  .profile-shell--board .profile-rail-mid .profile-stats .stat b {
    font-size: 1.15rem;
  }

  .admin-shell--board .admin-rail-mid .collect-search.card,
  .profile-shell--board .profile-rail-mid .collect-search.card {
    padding: 10px 10px;
    margin-bottom: 8px;
  }

  .admin-shell--board .admin-rail-mid > .card.list-card,
  .profile-shell--board .profile-rail-mid > .card.list-card {
    padding: 10px 10px;
    margin-bottom: 8px;
  }

  .admin-shell--board .admin-rail-mid > .card.list-card .sub,
  .profile-shell--board .profile-rail-mid > .card.list-card .sub {
    margin: 0 0 8px;
    font-size: 0.78rem;
  }

  .admin-shell--board .admin-rail-mid > .card.list-card .table-wrap,
  .profile-shell--board .profile-rail-mid > .card.list-card .table-wrap {
    max-height: none;
    overflow: visible;
  }

  .admin-shell--board .pay-board,
  .profile-shell--board .pay-board {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 8px;
  }

  .admin-shell--board .pay-board .day-panel,
  .profile-shell--board .pay-board .day-panel {
    padding: 12px 12px 10px;
    border-radius: 14px;
  }

  .admin-shell--board .pay-board .day-head,
  .profile-shell--board .pay-board .day-head {
    margin-bottom: 4px;
    gap: 8px;
  }

  .admin-shell--board .pay-board .day-panel h2,
  .profile-shell--board .pay-board .day-panel h2 {
    font-size: 1.12rem;
  }

  .admin-shell--board .pay-board .day-kicker,
  .profile-shell--board .pay-board .day-kicker {
    margin-bottom: 2px;
    font-size: 0.7rem;
  }

  .admin-shell--board .pay-board .day-count,
  .profile-shell--board .pay-board .day-count {
    min-width: 32px;
    height: 32px;
    font-size: 1.05rem;
    border-radius: 10px;
  }

  .admin-shell--board .pay-board .day-copy,
  .profile-shell--board .pay-board .day-copy {
    margin: 0 0 8px;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .admin-shell--board .pay-board .ticket-list,
  .profile-shell--board .pay-board .ticket-list {
    gap: 6px;
    max-height: none;
  }

  .admin-shell--board .pay-board .ticket,
  .profile-shell--board .pay-board .ticket {
    padding: 10px 11px;
    gap: 8px;
    border-radius: 11px;
  }

  .admin-shell--board .pay-board .ticket-name,
  .profile-shell--board .pay-board .ticket-name {
    font-size: 0.92rem;
  }

  .admin-shell--board .pay-board .ticket-meta,
  .profile-shell--board .pay-board .ticket-meta {
    font-size: 0.78rem;
    gap: 2px 6px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .admin-shell--board .pay-board .ticket-side,
  .profile-shell--board .pay-board .ticket-side {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .admin-shell--board .pay-board .empty-soft,
  .profile-shell--board .pay-board .empty-soft {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  /* User list → card rows (full phone width) */
  .user-list--board {
    min-width: 0 !important;
    width: 100%;
    display: block;
  }

  .user-list--board thead {
    display: none;
  }

  .user-list--board tbody {
    display: grid;
    gap: 8px;
  }

  .user-list--board tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 8px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 252, 247, 0.92);
  }

  .user-list--board td {
    padding: 0 !important;
    border: 0 !important;
    font-size: 0.84rem;
  }

  .user-list--board .board-col-name {
    grid-column: 1 / -1;
    font-size: 0.95rem;
  }

  .user-list--board .board-col-wa {
    display: none;
  }

  .user-list--board .board-col-paid::before,
  .user-list--board .board-col-unpaid::before,
  .user-list--board .board-col-total::before {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
  }

  .user-list--board .board-col-paid::before { content: "Paid"; }
  .user-list--board .board-col-unpaid::before { content: "Unpaid"; }
  .user-list--board .board-col-total::before { content: "Total"; }

  .user-list--board-admin .board-col-pay {
    grid-column: 1 / 3;
  }

  .user-list--board-admin .board-col-copy {
    grid-column: 3 / 4;
    justify-self: stretch;
  }

  .user-list--board .btn-xs,
  .user-list--board .btn-paid.btn-xs,
  .user-list--board .btn-ghost.btn-xs,
  .user-list--board .js-copy-payid {
    width: 100% !important;
    min-width: 0;
    padding: 8px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .user-list--board .paid-form {
    margin: 0;
    width: 100%;
  }

  .user-list--board tr.board-empty-row {
    display: block;
    padding: 12px 10px;
  }

  .user-list--board tr.board-empty-row td {
    display: block;
  }
}

@media (max-width: 520px) {
  .admin-shell--board,
  .profile-shell--board {
    padding-left: 6px;
    padding-right: 6px;
  }

  .admin-shell--board .pay-board .day-panel,
  .profile-shell--board .pay-board .day-panel {
    padding: 10px 10px 9px;
  }

  .admin-shell--board .pay-board .ticket,
  .profile-shell--board .pay-board .ticket {
    padding: 9px 10px;
  }

  .user-list--board tr {
    padding: 10px;
  }

  .user-list--board-admin .board-col-pay,
  .user-list--board-admin .board-col-copy {
    grid-column: 1 / -1;
  }
}

/* Saved lists — card layout */
.saved-card-list {
  display: grid;
  gap: 10px;
}

.saved-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(165deg, #fffcf7 0%, #f7faf8 100%);
  box-shadow: 0 8px 22px rgba(20, 32, 27, 0.05);
  padding: 14px 14px 12px;
  overflow: hidden;
}

.saved-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(20, 32, 27, 0.12);
}

.saved-card--paid::before {
  background: linear-gradient(180deg, #12815f, #0b6b4f);
}

.saved-card--unpaid::before {
  background: linear-gradient(180deg, #d9783a, #c45c26);
}

.saved-card--other::before {
  background: linear-gradient(180deg, #8a9390, #5c6b63);
}

.saved-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.saved-card-head {
  min-width: 0;
  flex: 1;
}

.saved-card-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 2px;
}

.saved-card-name {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.saved-card-phone {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.saved-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex: 0 0 auto;
}

.saved-card-actions form {
  margin: 0;
}

.saved-card-actions .btn,
.saved-card-actions button {
  width: auto !important;
  min-width: 0;
  padding: 7px 11px;
  font-size: 0.78rem;
  border-radius: 999px;
}

.saved-card-body {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(20, 32, 27, 0.06);
}

.saved-card-ids {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.saved-card-ids .dot,
.saved-card-extra .dot {
  opacity: 0.45;
}

.saved-card-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.saved-card-payline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.saved-card-payline .pass {
  min-width: 0;
}

/* Saved lists — mobile fit */
@media (max-width: 960px) {
  .admin-shell--saved .admin-rail-mid > .card.saved-lists-card {
    padding: 10px 8px;
    margin-bottom: 6px;
  }

  .admin-shell--saved .saved-lists-card .section-head {
    margin-bottom: 4px;
  }

  .admin-shell--saved .saved-lists-card .section-head h2 {
    font-size: 1rem;
  }

  .admin-shell--saved .saved-lists-card .sub {
    margin: 0 0 8px;
    font-size: 0.76rem;
  }

  .admin-shell--saved .saved-lists-search {
    gap: 6px;
    margin-bottom: 10px;
  }

  .admin-shell--saved .saved-lists-search .btn,
  .admin-shell--saved .saved-lists-search button {
    width: auto;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .saved-card-list {
    gap: 8px;
  }

  .saved-card {
    padding: 12px 12px 10px;
    border-radius: 14px;
  }

  .saved-card-name {
    font-size: 1rem;
  }

  .saved-card-actions .btn,
  .saved-card-actions button {
    padding: 6px 10px;
    font-size: 0.74rem;
  }
}

@media (max-width: 520px) {
  .admin-shell--saved .admin-rail-mid > .card.saved-lists-card {
    padding: 8px 6px;
  }

  .saved-card {
    padding: 11px 11px 9px;
  }

  .saved-card-top {
    gap: 8px;
  }

  .saved-card-name-row {
    gap: 5px 6px;
  }

  .saved-card-actions {
    align-self: flex-start;
  }
}

/* Projects list — Create project CTA */
.projects-card .section-head {
  align-items: center;
  gap: 12px;
}
.proj-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(11, 107, 79, 0.28);
  background:
    linear-gradient(145deg, #1a9a6e 0%, #0b6b4f 55%, #095a42 100%);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 22px rgba(11, 107, 79, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.proj-new-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 14px 28px rgba(11, 107, 79, 0.34);
  color: #fff;
}
.proj-new-btn:active {
  transform: translateY(0);
}
.proj-new-btn-plus {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  flex: 0 0 auto;
}
.proj-new-btn-plus::before,
.proj-new-btn-plus::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 2px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.proj-new-btn-plus::before {
  width: 10px;
  height: 2px;
}
.proj-new-btn-plus::after {
  width: 2px;
  height: 10px;
}
@media (max-width: 480px) {
  .proj-new-btn {
    padding: 0 12px 0 10px;
    font-size: 0.8rem;
    min-height: 36px;
  }
  .proj-new-btn-plus {
    width: 20px;
    height: 20px;
  }
}

/* Projects */
.proj-create {
  margin-top: 10px;
}
.proj-create summary {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: #0b6b4f;
  color: #fff;
  font-weight: 750;
  font-size: 0.86rem;
}
.proj-create summary::-webkit-details-marker { display: none; }
.proj-create[open] summary {
  margin-bottom: 10px;
}
.proj-people {
  display: grid;
  gap: 14px;
}
.proj-user-group {
  padding: 0;
  border: 1px solid rgba(20, 32, 27, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(165deg, rgba(255, 252, 247, 0.98), rgba(246, 250, 248, 0.96));
  box-shadow: 0 10px 26px rgba(20, 32, 27, 0.06);
  overflow: hidden;
}
.proj-user-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  background: rgba(11, 107, 79, 0.05);
  border-bottom: 1px solid rgba(20, 32, 27, 0.06);
}
.proj-user-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0b6b4f;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}
.proj-user-copy {
  min-width: 0;
  flex: 1;
}
.proj-user-head h3 {
  margin: 0;
  font-size: 1rem;
}
.proj-user-head p {
  margin: 2px 0 0;
  font-size: 0.76rem;
}
.proj-user-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.proj-pay-all {
  margin: 0;
}
@media (max-width: 640px) {
  .proj-user-head {
    flex-wrap: wrap;
  }
  .proj-user-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
.proj-user-group .proj-work-list {
  padding: 12px;
}
.proj-composer-card {
  background:
    linear-gradient(165deg, rgba(11, 107, 79, 0.07), transparent 46%),
    var(--card);
}
.proj-composer {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.proj-composer-name label {
  margin-bottom: 6px;
}
.proj-country-box {
  position: relative;
  margin-top: 10px;
  max-width: 280px;
  min-width: 0;
}
.proj-country-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(11, 107, 79, 0.18);
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.95);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.proj-country-trigger:hover,
.proj-country-box.is-open .proj-country-trigger {
  border-color: rgba(11, 107, 79, 0.42);
  box-shadow: 0 0 0 3px rgba(11, 107, 79, 0.08);
}
.proj-country-trigger-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.proj-country-trigger .proj-metric-kicker {
  margin: 0;
  line-height: 1.1;
}
.proj-country-summary {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0b6b4f;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proj-country-chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #0b6b4f;
  border-bottom: 2px solid #0b6b4f;
  transform: rotate(45deg);
  margin-top: -4px;
  opacity: 0.7;
  transition: transform 0.15s ease;
}
.proj-country-box.is-open .proj-country-chevron {
  transform: rotate(-135deg);
  margin-top: 2px;
}
.proj-country-panel {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  gap: 8px;
  min-width: 240px;
  max-width: 320px;
  padding: 10px;
  border: 1px solid rgba(11, 107, 79, 0.18);
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 14px 28px rgba(20, 40, 30, 0.14);
}
.proj-country-panel[hidden] {
  display: none !important;
}
.proj-country-all {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(11, 107, 79, 0.08);
  font-weight: 750;
  color: #0b6b4f;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.proj-country-all input,
.proj-country-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  flex: 0 0 auto;
}
.proj-country-list {
  display: grid;
  gap: 2px;
  max-height: 200px;
  overflow: auto;
  padding-right: 2px;
}
.proj-country-list[hidden] {
  display: none !important;
}
.proj-country-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 550;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.proj-country-option:hover,
.proj-country-option.is-on {
  background: rgba(11, 107, 79, 0.07);
}
.proj-country-done {
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: #0b6b4f;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.proj-country-done:hover {
  filter: brightness(1.05);
}
.proj-country-line {
  margin: 6px 0 4px !important;
  font-size: 0.8rem !important;
  font-weight: 650;
  color: #0b6b4f !important;
  line-height: 1.35;
}
.proj-country-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 4px;
}
.proj-country-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(11, 107, 79, 0.1);
  color: #0b6b4f;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.2;
}
.proj-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.proj-metric {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px 12px 10px;
  border: 1px solid rgba(11, 107, 79, 0.16);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.88);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
}
.proj-metric.is-compact {
  padding: 8px 10px;
  gap: 4px;
  min-width: 132px;
}
.proj-metric-kicker {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.proj-metric-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.proj-metric-row input {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1.15rem;
  font-weight: 800;
}
.proj-metric.is-compact .proj-metric-row input {
  font-size: 1rem;
}
.proj-metric-unit {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 107, 79, 0.1);
  color: #0b6b4f;
  font-size: 0.72rem;
  font-weight: 800;
}
.proj-metric-hint {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
}
.proj-composer-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.proj-composer-total {
  font-size: 0.86rem;
  color: var(--muted);
}
.proj-composer-total strong {
  color: #0b6b4f;
  font-size: 1.05rem;
  font-weight: 800;
}
.proj-composer-total span {
  display: block;
  font-size: 0.72rem;
}
.proj-composer-foot .btn-primary {
  min-width: 140px;
}
.proj-create,
.proj-create-go {
  margin: 0;
}
.proj-list {
  display: grid;
  gap: 14px;
}
.proj-board {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(165deg, #fffcf7 0%, #f6faf8 100%);
  box-shadow: 0 8px 22px rgba(20, 32, 27, 0.05);
  padding: 14px;
  overflow: hidden;
}
.proj-board.is-full,
.proj-board.is-complete {
  opacity: 0.98;
}
.proj-board.is-complete {
  background: linear-gradient(165deg, #f3faf6 0%, #eaf5ef 100%);
  border-color: rgba(11, 107, 79, 0.22);
}
.proj-board--detail {
  padding: 16px;
}
.proj-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.proj-status-badge.is-complete {
  background: linear-gradient(135deg, #0b6b4f, #159a6a);
  color: #fff;
  box-shadow: 0 6px 14px rgba(11, 107, 79, 0.22);
}
.proj-status-badge.is-open {
  background: rgba(180, 120, 40, 0.12);
  color: #8a5a12;
}
.proj-status-badge.is-bond {
  background: rgba(196, 92, 38, 0.14);
  color: #9a3412;
  box-shadow: 0 4px 12px rgba(196, 92, 38, 0.12);
}
.proj-board.is-bond {
  outline: 1px dashed rgba(196, 92, 38, 0.35);
}

/* Trust + admin bond — popup notices */
html.proj-trust-lock {
  overflow: hidden;
}
.proj-trust-pop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.proj-trust-pop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.proj-trust-pop[hidden] {
  display: none !important;
}
.proj-trust-pop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.proj-trust-pop-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(255, 251, 245, 0.96));
  box-shadow:
    0 28px 60px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(15, 23, 42, 0.04);
  text-align: center;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.proj-trust-pop.is-open .proj-trust-pop-card {
  transform: translateY(0) scale(1);
}
.proj-trust-pop-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 140px;
  background: radial-gradient(ellipse at center, rgba(196, 92, 38, 0.22), transparent 70%);
  pointer-events: none;
}
.proj-trust-pop-card.is-fee .proj-trust-pop-glow {
  background: radial-gradient(ellipse at center, rgba(11, 107, 79, 0.2), transparent 70%);
}
.proj-trust-pop-icon {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #e07a3d, #c45c26);
  box-shadow: 0 10px 24px rgba(196, 92, 38, 0.35);
}
.proj-trust-pop-card.is-fee .proj-trust-pop-icon {
  background: linear-gradient(145deg, #1a9b6c, #0b6b4f);
  box-shadow: 0 10px 24px rgba(11, 107, 79, 0.32);
}
.proj-trust-pop-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a3412;
}
.proj-trust-pop-card.is-fee .proj-trust-pop-kicker {
  color: #0b6b4f;
}
.proj-trust-pop-title {
  margin: 0 0 10px;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1e293b;
  line-height: 1.2;
}
.proj-trust-pop-body {
  margin: 0 0 20px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #475569;
  font-weight: 500;
}
.proj-trust-pop-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  font-weight: 700;
}
.proj-trust {
  display: none;
}
.proj-trust-mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #c45c26;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 1px;
}
.proj-trust-copy {
  min-width: 0;
  flex: 1;
}
.proj-trust-copy strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #9a3412;
  letter-spacing: -0.01em;
}
.proj-trust-copy p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #7a4a2a;
  font-weight: 550;
}
.proj-trust--join {
  margin: 0 0 12px;
  padding: 9px 11px;
}
.proj-trust--join .proj-trust-copy p {
  font-size: 0.74rem;
}
.proj-nolink {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(143, 29, 44, 0.22);
  background:
    linear-gradient(135deg, rgba(143, 29, 44, 0.08), transparent 55%),
    rgba(255, 246, 247, 0.96);
}
.proj-nolink-mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #8f1d2c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 1px;
}
.proj-nolink-copy {
  min-width: 0;
  flex: 1;
}
.proj-nolink-copy strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #8f1d2c;
  letter-spacing: -0.01em;
}
.proj-nolink-copy p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #7a3040;
  font-weight: 550;
}
.proj-nolink--join {
  margin: 0 0 12px;
  padding: 9px 11px;
}
.proj-nolink--join .proj-nolink-copy p {
  font-size: 0.74rem;
}
.proj-bond-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(11, 107, 79, 0.2);
  background:
    linear-gradient(145deg, rgba(11, 107, 79, 0.12), transparent 50%),
    var(--card);
  box-shadow: 0 8px 20px rgba(20, 32, 27, 0.05);
}
.proj-bond-banner.is-owner {
  border-color: rgba(196, 92, 38, 0.28);
  background:
    linear-gradient(145deg, rgba(196, 92, 38, 0.12), transparent 50%),
    var(--card);
}
.proj-bond-banner-copy {
  min-width: 0;
  flex: 1;
}
.proj-bond-banner-copy strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}
.proj-bond-banner.is-owner .proj-bond-banner-copy strong {
  color: #9a3412;
}
.proj-bond-banner-copy p {
  margin: 3px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}
.proj-bond-confirm {
  margin: 0;
  flex: 0 0 auto;
}
.proj-create-block--bond {
  background: linear-gradient(180deg, rgba(196, 92, 38, 0.06), rgba(11, 107, 79, 0.04));
}
.proj-bond {
  display: grid;
  gap: 10px;
}
.proj-bond-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.proj-bond-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #9a3412;
}
.proj-bond-amt {
  font-size: 1.25rem;
  font-weight: 800;
  color: #9a3412;
  letter-spacing: -0.02em;
}
.proj-bond-amt em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  opacity: 0.75;
}
.proj-bond-lead {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}
.proj-bond-steps {
  margin: 0;
  padding: 10px 12px 10px 28px;
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.85);
  border: 1px solid rgba(20, 32, 27, 0.08);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 600;
}
.proj-bond-steps li + li {
  margin-top: 4px;
}
.proj-bond-ack {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(196, 92, 38, 0.25);
  background: rgba(255, 252, 247, 0.9);
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.proj-bond-ack input {
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: #c45c26;
}
.proj-bond-ack.is-on {
  border-color: rgba(11, 107, 79, 0.35);
  background: rgba(11, 107, 79, 0.08);
}
.proj-escrow-opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0 4px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #334155;
  cursor: pointer;
}
.proj-escrow-opt input {
  margin-top: 3px;
  flex-shrink: 0;
}
.proj-escrow-pill {
  font-size: 0.72rem;
}
.proj-bond-payto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(196, 92, 38, 0.35);
  background: rgba(255, 252, 247, 0.95);
}
.proj-bond-payto-k {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.proj-bond-payto-id {
  margin: 0;
  padding: 6px 12px;
  border: none;
  border-radius: 10px;
  background: #c45c26;
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.proj-bond-payto-id:hover {
  filter: brightness(1.05);
}
.proj-bond-payto-id.is-inline {
  display: inline-flex;
  margin-top: 8px;
  font-size: 0.95rem;
}
@media (max-width: 640px) {
  .proj-bond-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .proj-bond-banner .btn-primary,
  .proj-bond-confirm .btn-primary {
    width: 100%;
  }
}
.proj-slots.is-complete .proj-slots-bar span,
.proj-slots.is-full .proj-slots-bar span {
  background: linear-gradient(90deg, #0b6b4f, #2bb673);
}
.proj-complete-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11, 107, 79, 0.08);
  color: #0b6b4f;
  font-size: 0.9rem;
}
.proj-joiner-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.proj-joiner-head-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.proj-joiner-head-copy h3 {
  margin: 0;
}
.proj-joiner-head-copy p {
  margin: 2px 0 0;
}
.proj-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
details.proj-board--fold {
  padding: 0;
}
details.proj-board--fold > summary.proj-board-head {
  list-style: none;
  cursor: pointer;
  margin: 0;
  padding: 14px;
}
details.proj-board--fold > summary.proj-board-head::-webkit-details-marker {
  display: none;
}
details.proj-board--fold[open] > summary.proj-board-head {
  border-bottom: 1px solid rgba(20, 32, 27, 0.06);
}
.proj-board-open {
  padding: 12px 14px 14px;
}
.proj-join-count {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(11, 107, 79, 0.1);
  color: #0b6b4f;
  font-size: 0.72rem;
  font-weight: 800;
}
.proj-board-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: 0 0 auto;
}
.proj-board-copy h2,
.proj-board-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 700;
  display: block;
}
.proj-creator {
  display: inline-block;
  margin: 4px 0 2px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
}
.proj-creator strong {
  font-weight: 750;
  color: var(--ink);
}
a.proj-creator:hover strong {
  color: var(--accent);
  text-decoration: underline;
}
.proj-board-copy .proj-creator {
  display: block;
}
a.proj-board--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.proj-board--link:hover {
  border-color: rgba(11, 107, 79, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(20, 32, 27, 0.08);
}
.proj-board-copy p {
  margin: 3px 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}
.proj-price {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 107, 79, 0.1);
  color: #0b6b4f;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.1;
  white-space: nowrap;
}
.proj-price small,
.proj-qty small {
  font-weight: 650;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.proj-qty {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(58, 124, 165, 0.12);
  color: #2a5f7e;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.1;
  white-space: nowrap;
}
.proj-board-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.proj-edit-form {
  display: grid;
  gap: 10px;
  flex: 1 1 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(20, 32, 27, 0.08);
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.92);
}
.proj-price-form,
.proj-offer-form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 0;
  flex: 1;
}
.proj-offer-save {
  display: flex;
  align-items: center;
  gap: 8px;
}
.proj-offer-total {
  font-size: 0.76rem;
  color: var(--muted);
}
.proj-offer-total strong {
  color: #0b6b4f;
}
.proj-slots {
  margin-top: 8px;
}
.proj-slots-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(20, 32, 27, 0.08);
  overflow: hidden;
}
.proj-slots-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #12815f, #0b6b4f);
}
.proj-slots.is-full .proj-slots-bar span {
  background: linear-gradient(90deg, #c45c26, #9d2f2f);
}
.proj-slots-meta {
  margin-top: 5px;
  font-size: 0.76rem;
  color: var(--muted);
}
.proj-slots-meta strong {
  color: #0b6b4f;
  font-weight: 800;
}
.proj-people {
  margin: 14px 0 4px;
  border: 1px solid rgba(11, 107, 79, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf9 0%, #f6faf7 100%);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(20, 40, 30, 0.05);
}
.proj-people-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
}
.proj-people-head h3 {
  margin: 0;
  font-size: 1rem;
}
.proj-people-sub {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.proj-people-count {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 107, 79, 0.1);
  color: #0b6b4f;
  font-size: 0.78rem;
  font-weight: 800;
}
.proj-people-empty {
  margin: 0;
  padding: 8px 16px 18px;
  color: var(--muted);
  font-size: 0.88rem;
}
.proj-people-list {
  display: grid;
  gap: 8px;
  padding: 0 10px 12px;
}
.proj-person-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(11, 107, 79, 0.1);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.proj-person-card:hover {
  border-color: rgba(11, 107, 79, 0.32);
  box-shadow: 0 8px 18px rgba(20, 40, 30, 0.08);
  transform: translateY(-1px);
}
.proj-person-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}
.proj-person-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.proj-person-name {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}
.proj-person-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}
.proj-mini-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(11, 107, 79, 0.1);
  color: #0b6b4f;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.3;
}
.proj-mini-pill.is-soft {
  background: rgba(20, 32, 27, 0.06);
  color: #445248;
}
.proj-mini-pill.is-pay {
  background: rgba(180, 120, 40, 0.14);
  color: #8a5a12;
}
.proj-person-preview {
  font-size: 0.84rem;
  color: #3d4a42;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proj-person-meta {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}
.proj-person-go {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #0b6b4f;
  border-bottom: 2px solid #0b6b4f;
  transform: rotate(-45deg);
  opacity: 0.55;
}
.proj-user-page {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(11, 107, 79, 0.14);
  border-radius: 16px;
  background: linear-gradient(165deg, #fffdf9 0%, #f4faf6 100%);
}
.proj-user-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(11, 107, 79, 0.1);
}
.proj-user-page-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.proj-user-page-copy h3 {
  margin: 0;
  font-size: 1.05rem;
}
.proj-user-page-copy p {
  margin: 3px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.proj-user-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.proj-tg-send {
  margin: 0;
}
.proj-user-avatar.is-lg {
  width: 44px;
  height: 44px;
  font-size: 1.05rem;
}
.proj-submission-list {
  display: grid;
  gap: 10px;
}
.proj-sub-box {
  border: 1px solid rgba(20, 32, 27, 0.1);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.proj-sub-box.is-paid {
  border-color: rgba(11, 107, 79, 0.28);
  background: linear-gradient(180deg, #f5fbf7, #fff);
}
.proj-sub-box.is-done {
  border-color: rgba(11, 107, 79, 0.2);
}
.proj-sub-box.is-rejected {
  border-color: rgba(160, 50, 50, 0.22);
  background: #fff8f7;
}
.proj-sub-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
}
.proj-sub-summary::-webkit-details-marker {
  display: none;
}
.proj-sub-summary-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}
.proj-sub-summary-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.proj-sub-preview {
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
  color: #1f2a24;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proj-sub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}
.proj-sub-summary-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.proj-sub-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #0b6b4f;
  border-bottom: 2px solid #0b6b4f;
  transform: rotate(45deg);
  margin-top: -4px;
  opacity: 0.55;
  transition: transform 0.15s ease;
}
.proj-sub-box[open] .proj-sub-chevron {
  transform: rotate(-135deg);
  margin-top: 2px;
}
.proj-sub-panel {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(11, 107, 79, 0.08);
}
.proj-submission-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(11, 107, 79, 0.1);
  color: #0b6b4f;
  font-size: 0.72rem;
  font-weight: 800;
  flex: 0 0 auto;
  margin-top: 2px;
}
.proj-submission-body {
  margin: 10px 0;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(11, 107, 79, 0.04);
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.proj-submission-empty {
  margin: 10px 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.proj-joiners {
  margin: 0 0 12px;
  border: 1px solid rgba(11, 107, 79, 0.14);
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.88);
}
.proj-joiners-fold {
  margin: 10px 0 0;
  border: 1px solid rgba(20, 32, 27, 0.1);
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.95);
  overflow: hidden;
}
.proj-joiners-fold > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-weight: 750;
  font-size: 0.9rem;
  user-select: none;
}
.proj-joiners-fold > summary::-webkit-details-marker {
  display: none;
}
.proj-joiners-fold > summary::after {
  content: "▸";
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
}
.proj-joiners-fold[open] > summary::after {
  content: "▾";
}
.proj-joiners-fold-count {
  min-width: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(11, 107, 79, 0.12);
  color: #0b6b4f;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}
.proj-joiners-fold .proj-joiners {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(20, 32, 27, 0.08);
  border-radius: 0;
}
.proj-joiners-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin: 0;
  padding: 10px 12px 8px;
  font-size: 0.86rem;
  font-weight: 650;
}
.proj-joiners-title strong {
  color: #0b6b4f;
  font-size: 1rem;
}
.proj-joiners-title span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 550;
}
.proj-joiners-empty {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.proj-joiners-list {
  display: grid;
  gap: 10px;
  padding: 10px 12px 12px;
}
.proj-joiner {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(20, 32, 27, 0.07);
  box-shadow: 0 4px 12px rgba(20, 32, 27, 0.04);
}
.proj-joiner.is-mine {
  border-color: rgba(11, 107, 79, 0.22);
}
.proj-joiner-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.proj-joiner-head h3 {
  margin: 0;
  font-size: 0.92rem;
}
.proj-joiner-head p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.proj-joiner-job {
  padding: 6px 0 2px;
  border-top: 1px dashed rgba(20, 32, 27, 0.08);
}
.proj-joiner-job-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.proj-joiner-when {
  font-size: 0.72rem;
  color: var(--muted);
}
.proj-full-note {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #9d2f2f;
  font-weight: 650;
}
.proj-user-form {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}
.proj-user-go {
  margin: 0;
}
.proj-join-box[hidden] {
  display: none !important;
}
.proj-join-box {
  margin: 0 0 12px;
  animation: projJoinBoxIn 0.22s ease;
}
@keyframes projJoinBoxIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.proj-join-box-inner {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(11, 107, 79, 0.18);
  background:
    linear-gradient(165deg, rgba(11, 107, 79, 0.08), transparent 42%),
    rgba(255, 252, 247, 0.96);
  box-shadow: 0 8px 22px rgba(20, 32, 27, 0.06);
}
.proj-join-box-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.proj-join-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 750;
  color: #0b6b4f;
}
.proj-join-box-head h3 {
  margin: 2px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: #14201b;
}
.proj-join-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.proj-join-term {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 32, 27, 0.08);
}
.proj-join-term--wide {
  grid-column: 1 / -1;
}
.proj-join-term .proj-metric-kicker {
  display: block;
  margin-bottom: 2px;
}
.proj-join-term strong {
  font-size: 0.95rem;
  color: #14201b;
}
@media (max-width: 560px) {
  .proj-join-terms {
    grid-template-columns: 1fr 1fr;
  }
}
#proj_join_open.is-open {
  background: #0b6b4f;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}
.proj-owner-chat {
  max-height: 280px;
  margin: 0 0 10px;
}
.proj-join-form label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.proj-join-form textarea {
  min-height: 110px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(20, 32, 27, 0.12);
  background: #fff;
  padding: 10px 12px;
  font: inherit;
}
.proj-join-form textarea:focus {
  outline: 2px solid rgba(11, 107, 79, 0.28);
  outline-offset: 1px;
  border-color: rgba(11, 107, 79, 0.35);
}
.proj-join-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}
.proj-join-actions .btn-primary {
  min-width: 96px;
}
.proj-work-list {
  display: grid;
  gap: 10px;
}
.proj-work {
  position: relative;
  padding: 12px 12px 12px 14px;
  border: 1px solid rgba(20, 32, 27, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(20, 32, 27, 0.04);
  overflow: hidden;
}
.proj-work::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(20, 32, 27, 0.12);
}
.proj-work.is-paid::before {
  background: linear-gradient(180deg, #12815f, #0b6b4f);
}
.proj-work.is-done::before {
  background: linear-gradient(180deg, #2f8f6d, #1f6f54);
}
.proj-work.is-progress::before {
  background: linear-gradient(180deg, #3a7ca5, #2a5f7e);
}
.proj-work.is-review::before {
  background: linear-gradient(180deg, #d9783a, #c45c26);
}
.proj-work.is-rejected::before {
  background: linear-gradient(180deg, #c44b4b, #9d2f2f);
}
.proj-work.is-new::before {
  background: linear-gradient(180deg, #8a9390, #5c6b63);
}
.proj-work-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.proj-work-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.proj-work-name {
  flex: 0 1 auto;
  max-width: 160px;
  font-weight: 750;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proj-work-country {
  flex: 0 1 auto;
  max-width: 110px;
  font-size: 0.74rem;
  font-weight: 650;
  color: #0b6b4f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proj-work-time {
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--muted);
}
.proj-work-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.proj-work-row .pill {
  flex: 0 0 auto;
  white-space: nowrap;
}
.proj-work-body {
  margin: 8px 0 0;
  font-size: 0.88rem;
  white-space: pre-wrap;
}
.proj-work-body.is-masked {
  color: #8a8378;
  letter-spacing: 0.08em;
  user-select: none;
}
.proj-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.proj-doc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 120px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(28, 25, 23, 0.12);
  background: #fff;
  color: #1c1917;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 650;
  overflow: hidden;
}
.proj-doc.is-image {
  padding: 0;
  width: 72px;
  height: 72px;
}
.proj-doc.is-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.proj-doc-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
}
.proj-join-form input[type="file"] {
  width: 100%;
  margin-top: 4px;
  font-size: 0.86rem;
}
.proj-work-payline {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
  flex: 0 0 auto;
}
.proj-note {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(11, 107, 79, 0.07);
  font-size: 0.86rem;
}
.proj-work-tools {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  min-width: 0;
}
.proj-work-process {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.proj-work-process select {
  flex: 0 0 auto;
  width: 112px;
  height: 30px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid rgba(20, 32, 27, 0.12);
  background: #fff;
  font: inherit;
  font-size: 0.76rem;
}
.proj-work-process input[type="text"] {
  flex: 1 1 auto;
  min-width: 64px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(20, 32, 27, 0.12);
  background: #fff;
  font: inherit;
  font-size: 0.76rem;
}
.proj-work-process .btn-ghost,
.proj-pay-form .btn-paid {
  flex: 0 0 auto;
  white-space: nowrap;
}
.proj-pay-form,
.proj-remove-form {
  margin: 0;
  flex: 0 0 auto;
}
@media (max-width: 960px) {
  .proj-metrics {
    grid-template-columns: 1fr;
  }
  .proj-composer-foot .btn-primary {
    width: 100%;
  }
  .proj-offer-form {
    width: 100%;
  }
  .proj-create {
    grid-template-columns: 1fr;
  }
  .proj-board {
    padding: 12px 10px;
  }
  .proj-work-top {
    flex-wrap: wrap;
  }
  .proj-work-name {
    max-width: 120px;
  }
  .proj-work-country {
    max-width: 90px;
  }
  .proj-work-process select {
    width: 96px;
  }
  .proj-work-status {
    justify-content: flex-start;
  }
}

/* Community admin chat */
.cm-chat {
  padding: 14px 14px 10px;
}
.cm-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.cm-chat-kicker {
  margin: 0 0 2px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b6b4f;
}
.cm-chat-head h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.cm-chat-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--muted);
}
.cm-chat-unread-all {
  padding: 2px 8px;
  border-radius: 999px;
  background: #0b6b4f;
  color: #fff;
  font-weight: 750;
}
.cm-chat-sub {
  margin: 6px 0 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
.cm-chat-search {
  display: block;
  margin: 0 0 10px;
}
.cm-chat-search input {
  width: 100%;
  margin: 0;
}
.cm-chat-list {
  display: grid;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
  padding-bottom: 4px;
}
.cm-chat--page {
  padding: 16px 16px 12px;
}
.cm-chat--page .cm-chat-list {
  max-height: min(70vh, 720px);
}
.cm-person {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(20, 32, 27, 0.08);
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.95);
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.cm-person[hidden] {
  display: none !important;
}
.cm-person:hover {
  border-color: rgba(11, 107, 79, 0.28);
  background: rgba(11, 107, 79, 0.05);
}
.cm-avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0b6b4f;
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
}
.cm-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}
.cm-name {
  font-weight: 750;
  font-size: 0.92rem;
}
.cm-preview {
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cm-receipt {
  display: inline;
  margin-right: 5px;
  font-weight: 750;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.cm-receipt.is-seen {
  color: #0b6b4f;
}
.cm-badge {
  flex: 0 0 auto;
  min-width: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #c45c26;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}
.cm-go {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 750;
  color: #0b6b4f;
}
.cm-chat-empty {
  padding: 12px 4px;
  font-size: 0.8rem;
  color: var(--muted);
}
.cm-broadcast {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 10px 12px;
  border: 1px solid rgba(20, 32, 27, 0.08);
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.9);
}
.cm-broadcast label {
  font-size: 0.78rem;
  font-weight: 750;
}
.cm-broadcast textarea {
  width: 100%;
  margin: 0;
  resize: vertical;
  min-height: 72px;
}
.cm-broadcast .btn-primary {
  justify-self: start;
}
@media (max-width: 640px) {
  .cm-chat-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .cm-chat-counts {
    justify-content: flex-start;
  }
  .cm-chat--page {
    padding: 12px 12px 88px;
  }
  .cm-chat-list,
  .cm-chat--page .cm-chat-list {
    max-height: none;
    overflow: visible;
  }
  .cm-person {
    padding: 10px 8px;
  }
  .cm-name,
  .cm-preview {
    min-width: 0;
  }
  .cm-broadcast {
    padding: 10px;
  }
  .cm-broadcast .btn-primary,
  .cm-chat--page > .btn-primary {
    width: 100%;
    justify-self: stretch;
  }
}


/* Issue / Reject pay */
.ri-pay-page .sub { margin-bottom: 14px; }
.ri-pay-min-note {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #5c3d1a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(180, 83, 9, 0.2);
}
.ri-pay-min-note strong {
  display: inline;
  font-weight: 800;
  color: #9a3412;
}
.ri-pay-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}
.ri-pay-stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(165deg, #f7fbf9 0%, #eef6f2 100%);
  border: 1px solid rgba(11, 107, 79, 0.1);
}
.ri-pay-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b746e;
  margin-bottom: 4px;
}
.ri-pay-stat strong {
  font-size: 1.35rem;
  color: #14201b;
}
.ri-pay-stat.is-money strong {
  color: #0b6b4f;
}
.ri-pay-everyone {
  margin: 0;
}
.ri-rate-form {
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 107, 79, 0.12);
}
.ri-rate-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6b746e;
  margin-bottom: 8px;
}
.ri-rate-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.ri-rate-row input[type="number"] {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(11, 107, 79, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: #14201b;
  background: #fff;
}
.ri-rate-row input[type="number"]:focus {
  outline: none;
  border-color: rgba(11, 107, 79, 0.45);
}
.ri-rate-row .btn-ghost {
  flex: 0 0 auto;
  white-space: nowrap;
}
.ri-rate-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
}
.ri-pay-everyone-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  font-size: 0.95rem;
}

.ri-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.ri-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background:
    linear-gradient(165deg, #fffefb 0%, #f7faf8 55%, #eef6f1 100%);
  border: 1px solid rgba(11, 107, 79, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 8px 22px rgba(12, 40, 28, 0.06);
}
.ri-card.is-settled {
  opacity: 0.78;
}
.ri-card-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ri-card-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(145deg, #1b8a5a, #0c3d28);
  box-shadow: 0 4px 12px rgba(11, 107, 79, 0.25);
}
.ri-card-name-text {
  min-width: 0;
  flex: 1 1 auto;
}
.ri-card-name-text h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 780;
  color: #14201b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ri-card-got-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  vertical-align: middle;
  color: #0b6b4f;
  background: rgba(11, 107, 79, 0.1);
  border: 1px solid rgba(11, 107, 79, 0.18);
}
.ri-card-name-text p {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: #6b746e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ri-card-payid {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: flex-start;
}
.ri-card-copy-id {
  border: 1px solid rgba(11, 107, 79, 0.22);
  background: #fff;
  color: #0b6b4f;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.ri-card-copy-id:hover {
  background: rgba(11, 107, 79, 0.08);
}
.ri-card-copy-id.is-copied {
  background: #0b6b4f;
  color: #fff;
  border-color: #0b6b4f;
}
.ri-card-payid-missing {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #b45309;
  padding: 6px 8px;
}

.ri-card-look {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 107, 79, 0.12);
  overflow: hidden;
}
.ri-card-look-btn {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 750;
  font-size: 0.88rem;
  color: #0b6b4f;
  user-select: none;
}
.ri-card-look-btn::-webkit-details-marker { display: none; }
.ri-card-look-btn::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #0b6b4f;
  border-bottom: 2px solid #0b6b4f;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-left: 4px;
}
.ri-card-look[open] > .ri-card-look-btn::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.ri-card-look-btn:hover {
  background: rgba(11, 107, 79, 0.06);
}
.ri-card-look-meta {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 650;
  color: #6b746e;
}
.ri-card-look-body {
  padding: 0 10px 10px;
  max-height: 280px;
  overflow: auto;
}
.ri-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ri-card-item {
  padding: 10px 11px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(12, 40, 28, 0.08);
}
.ri-card-item.is-paid {
  opacity: 0.62;
}
.ri-card-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.ri-card-item-amt {
  font-size: 0.8rem;
  font-weight: 750;
  color: #0b6b4f;
}
.ri-card-item-name {
  display: block;
  font-size: 0.92rem;
  color: #14201b;
  margin-bottom: 4px;
}
.ri-card-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.72rem;
  color: #6b746e;
}

.ri-card-nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ri-card-num {
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(12, 40, 28, 0.08);
}
.ri-card-num span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b746e;
  margin-bottom: 2px;
}
.ri-card-num strong {
  font-size: 1.2rem;
  color: #14201b;
}
.ri-card-num.is-unpaid strong {
  color: #b45309;
}

.ri-card-pay {
  margin-top: auto;
}
.ri-card-pay form {
  margin: 0;
}
.ri-card-pay-btn {
  width: 100%;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 750;
}
.ri-card-pay-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ri-card-pay-hint {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: #b45309;
  text-align: center;
}
.ri-card-paid-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 750;
  font-size: 0.9rem;
  color: #0b6b4f;
  background: rgba(11, 107, 79, 0.1);
  border: 1px solid rgba(11, 107, 79, 0.16);
}
.ri-card-wait-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.86rem;
  text-align: center;
  color: #92400e;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(180, 83, 9, 0.2);
}
.ri-card-wait-badge.is-low {
  color: #6b7280;
  background: rgba(20, 32, 27, 0.06);
  border-color: rgba(20, 32, 27, 0.1);
}
.ri-card-grid.is-single {
  grid-template-columns: minmax(0, 420px);
}

@media (max-width: 720px) {
  .ri-pay-stats {
    grid-template-columns: 1fr 1fr;
  }
  .ri-card-grid,
  .ri-card-grid.is-single {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Issue/Reject $1000 bonus offer popup */
html.ri-bonus-lock,
body.ri-bonus-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}
.ri-bonus-pop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.ri-bonus-pop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.ri-bonus-pop[hidden] {
  display: none !important;
}
.ri-bonus-pop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 20, 0.62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.ri-bonus-pop-card {
  position: relative;
  z-index: 1;
  width: min(360px, 92vw);
  max-height: min(84dvh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4faf7 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 24px 50px rgba(12, 24, 20, 0.28),
    0 0 0 1px rgba(11, 107, 79, 0.08);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.ri-bonus-pop.is-open .ri-bonus-pop-card {
  transform: translateY(0) scale(1);
}
.ri-bonus-pop-x {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 30px;
  height: 30px;
  margin: 0;
  float: none;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2a26;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.ri-bonus-pop-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 210px;
  background: #0b6b4f;
  overflow: hidden;
}
.ri-bonus-pop-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.ri-bonus-pop-ribbon {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: #0b3d2e;
  background: rgba(255, 248, 220, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}
.ri-bonus-pop-body {
  padding: 12px 14px 14px;
  text-align: left;
}
.ri-bonus-pop-eyebrow {
  margin: 0 0 3px;
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b6b4f;
}
.ri-bonus-pop-body h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  line-height: 1.25;
  color: #14201b;
  font-weight: 820;
}
.ri-bonus-pop-lead {
  margin: 0 0 10px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #3d4a44;
}
.ri-bonus-pop-points {
  margin: 0 0 10px;
  padding: 8px 10px 8px 24px;
  border-radius: 12px;
  background: rgba(11, 107, 79, 0.06);
  border: 1px solid rgba(11, 107, 79, 0.12);
  color: #24332c;
  font-size: 0.82rem;
  line-height: 1.4;
}
.ri-bonus-pop-points li + li {
  margin-top: 4px;
}
.ri-bonus-pop-progress {
  margin: 0 0 14px;
}
.ri-bonus-pop-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: #5b675f;
  margin-bottom: 6px;
}
.ri-bonus-pop-progress-top strong {
  color: #0b6b4f;
  font-variant-numeric: tabular-nums;
}
.ri-bonus-pop-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(11, 107, 79, 0.1);
  overflow: hidden;
}
.ri-bonus-pop-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b6b4f, #d4af37);
  transition: width 0.4s ease;
}
.ri-bonus-pop-left,
.ri-bonus-pop-thanks {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: #4b574f;
  line-height: 1.4;
}
.ri-bonus-pop-ok {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  min-height: 44px;
}
@media (max-width: 720px) {
  .ri-bonus-pop {
    align-items: center;
    justify-content: center;
    padding: max(10px, env(safe-area-inset-top)) 14px max(10px, env(safe-area-inset-bottom));
  }
  .ri-bonus-pop-card {
    width: min(340px, 88vw);
    max-height: min(82dvh, 100%);
    border-radius: 16px;
  }
  .ri-bonus-pop-media {
    aspect-ratio: 4 / 3;
    max-height: 190px;
    width: 100%;
    min-height: 0;
  }
  .ri-bonus-pop-body {
    padding: 10px 12px 12px;
  }
  .ri-bonus-pop-body h3 {
    font-size: 1rem;
  }
  .ri-bonus-pop-lead,
  .ri-bonus-pop-points {
    font-size: 0.8rem;
  }
}

/* Project buy/sell post meta + Messages (Send2Send) */
.proj-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.proj-work-deal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0 8px;
}
.proj-work-deal-price,
.proj-work-deal-qty {
  font-weight: 750;
  font-size: 0.88rem;
}
.proj-work-deal-price small,
.proj-work-deal-qty small {
  font-weight: 600;
  opacity: 0.7;
}
.proj-work-deal-country {
  font-size: 0.78rem;
  opacity: 0.8;
}
.s2s-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-height: 420px;
}
.s2s-side,
.s2s-thread {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  padding: 12px;
}
.s2s-search {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.s2s-search input {
  flex: 1;
  min-width: 0;
}
.s2s-people,
.s2s-chats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 520px;
  overflow: auto;
}
.s2s-person,
.s2s-chat {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: rgba(15,23,42,0.03);
}
.s2s-chat.is-on,
.s2s-person:hover,
.s2s-chat:hover {
  background: rgba(15,23,42,0.07);
}
.s2s-person strong,
.s2s-chat strong {
  display: block;
  font-size: 0.9rem;
}
.s2s-person span,
.s2s-preview {
  display: block;
  font-size: 0.76rem;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s2s-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  background: #0f172a;
  color: #fff;
}
.s2s-empty,
.s2s-placeholder {
  padding: 24px 12px;
  text-align: center;
  opacity: 0.75;
}
.s2s-placeholder strong,
.s2s-placeholder span {
  display: block;
}
.s2s-thread-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.s2s-thread-head h3 {
  margin: 0;
  font-size: 1rem;
}
.s2s-thread-head p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  opacity: 0.7;
}
.s2s-msgs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 6px 2px 12px;
}
.s2s-bubble {
  max-width: min(85%, 420px);
  align-self: flex-start;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(15,23,42,0.06);
}
.s2s-bubble.is-mine {
  align-self: flex-end;
  background: rgba(16,185,129,0.16);
}
.s2s-bubble p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.s2s-bubble time {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  opacity: 0.55;
}
.s2s-img img {
  display: block;
  max-width: 220px;
  border-radius: 10px;
}
.s2s-doc {
  display: inline-block;
  font-weight: 650;
  text-decoration: none;
}
.s2s-compose textarea {
  width: 100%;
  margin-bottom: 8px;
}
.s2s-compose-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.s2s-attach {
  font-size: 0.82rem;
  cursor: pointer;
}
.s2s-attach input {
  max-width: 180px;
}
@media (max-width: 820px) {
  .proj-offer-grid {
    grid-template-columns: 1fr;
  }
  .s2s-layout {
    grid-template-columns: 1fr;
  }
  .s2s-layout.has-thread .s2s-side {
    display: none;
  }
}

/* Create project page — fills mid rail */
.proj-create-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  animation: projCreateIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes projCreateIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.proj-create-form {
  margin: 0;
  min-width: 0;
  width: 100%;
}
.proj-create-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 22%),
    var(--card);
  border: 1px solid rgba(20, 32, 27, 0.1);
  border-radius: 20px;
  box-shadow:
    0 14px 32px rgba(20, 32, 27, 0.05),
    var(--shadow);
  overflow: hidden;
}
.proj-create-hero {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(20, 32, 27, 0.07);
  background:
    linear-gradient(145deg, rgba(11, 107, 79, 0.11), transparent 52%),
    linear-gradient(200deg, rgba(196, 92, 38, 0.05), transparent 42%),
    transparent;
  box-shadow: none;
}
.proj-create-hero-bg {
  position: absolute;
  inset: auto -18% -60% 40%;
  height: 150%;
  background:
    radial-gradient(circle at 30% 40%, rgba(11, 107, 79, 0.16), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(196, 92, 38, 0.1), transparent 50%);
  pointer-events: none;
  animation: projHeroGlow 8s ease-in-out infinite alternate;
}
@keyframes projHeroGlow {
  from { transform: translate(0, 0) scale(1); opacity: 0.85; }
  to { transform: translate(-3%, 2%) scale(1.05); opacity: 1; }
}
.proj-create-hero-inner {
  position: relative;
  z-index: 1;
  padding: 12px 16px 12px;
  min-width: 0;
}
.proj-create-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.proj-create-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 107, 79, 0.14);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.proj-create-back:hover {
  background: #fff;
  border-color: rgba(11, 107, 79, 0.28);
  text-decoration: none;
}
.proj-create-step-now {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 750;
  color: #0b6b4f;
  white-space: nowrap;
}
.proj-create-hero h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.proj-create-block[hidden] {
  display: none !important;
}
.proj-create-block {
  padding: 14px 16px 14px;
  min-width: 0;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(20, 32, 27, 0.07);
}
.proj-create-block.is-active {
  border-bottom: none;
}
.proj-create-block:last-of-type {
  border-bottom: none;
}
.proj-create-block--offer {
  background:
    linear-gradient(160deg, rgba(11, 107, 79, 0.07), transparent 55%),
    rgba(11, 107, 79, 0.02);
}
.proj-create-block--bond {
  background:
    linear-gradient(160deg, rgba(196, 92, 38, 0.07), transparent 50%),
    rgba(255, 250, 245, 0.65);
}
.proj-create-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.proj-create-block-head h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
}
.proj-create-block-head h2 em {
  font-style: normal;
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: rgba(11, 107, 79, 0.45);
  font-weight: 700;
}
.proj-create-block--bond .proj-create-block-head h2 {
  color: #9a3412;
}
.proj-create-block--bond .proj-create-block-head h2 em {
  color: rgba(154, 52, 18, 0.4);
}
.proj-create-block-head p {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
}
.proj-create-field {
  margin-bottom: 12px;
  min-width: 0;
}
.proj-create-field:last-child {
  margin-bottom: 0;
}
.proj-create-field > label,
.proj-create-label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink);
}
.proj-create-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(11, 107, 79, 0.18);
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.98);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.proj-create-input:focus {
  outline: none;
  border-color: rgba(11, 107, 79, 0.5);
  box-shadow: 0 0 0 4px rgba(11, 107, 79, 0.12);
}
.proj-create-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 10px;
  align-items: start;
}
.proj-create-field--country .proj-country-box {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  min-width: 0;
}
.proj-create-field--country .proj-country-trigger .proj-metric-kicker {
  display: none;
}
.proj-create-field--country .proj-country-trigger {
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 12px;
  box-sizing: border-box;
}
.proj-create-field--country .proj-country-summary {
  font-size: 0.92rem;
}
.proj-deal-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(20, 32, 27, 0.05);
  border: 1px solid rgba(20, 32, 27, 0.06);
}
.proj-deal-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-weight: 750;
  font-size: 0.9rem;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.proj-deal-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.proj-deal-opt[data-deal="sell"].is-on {
  border-color: rgba(11, 107, 79, 0.35);
  background: #fff;
  color: #0b6b4f;
  box-shadow: 0 6px 16px rgba(11, 107, 79, 0.14);
  transform: translateY(-1px);
}
.proj-deal-opt[data-deal="buy"].is-on {
  border-color: rgba(196, 92, 38, 0.35);
  background: #fff;
  color: #9a3412;
  box-shadow: 0 6px 16px rgba(196, 92, 38, 0.14);
  transform: translateY(-1px);
}
.proj-create-metrics {
  margin: 0;
}
.proj-create-page .proj-metric {
  min-width: 0;
  background: rgba(255, 252, 247, 0.98);
  border-radius: 16px;
  border: 1px solid rgba(11, 107, 79, 0.12);
  box-shadow: 0 6px 16px rgba(20, 32, 27, 0.03);
}
.proj-create-page .proj-metric-row input {
  width: 100%;
  min-width: 0;
}
.proj-create-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 107, 79, 0.14), rgba(11, 107, 79, 0.06));
  border: 1px solid rgba(11, 107, 79, 0.16);
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  min-width: 0;
}
.proj-create-total-copy {
  display: grid;
  gap: 2px;
}
.proj-create-total-copy small {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.75;
}
.proj-create-total strong {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  font-family: "Fraunces", Georgia, serif;
  white-space: nowrap;
}
.proj-create-total strong em {
  font-style: normal;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  opacity: 0.7;
}
.proj-create-page .proj-bond {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.proj-create-page .proj-bond-amt {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
}
.proj-create-block--docs {
  padding-top: 12px;
  padding-bottom: 12px;
}
.proj-create-docs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(20, 32, 27, 0.1);
  background: rgba(255, 252, 247, 0.75);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.proj-create-docs:hover {
  border-color: rgba(11, 107, 79, 0.22);
}
.proj-create-docs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.proj-create-docs-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.proj-create-docs-title {
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--ink);
}
.proj-create-docs-hint {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
}
.proj-create-docs-switch {
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(20, 32, 27, 0.14);
  position: relative;
  transition: background 0.18s ease;
}
.proj-create-docs-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(20, 32, 27, 0.2);
  transition: transform 0.18s ease;
}
.proj-create-docs.is-active {
  border-color: rgba(11, 107, 79, 0.3);
  background: rgba(11, 107, 79, 0.08);
  box-shadow: 0 6px 16px rgba(11, 107, 79, 0.08);
}
.proj-create-docs.is-active .proj-create-docs-switch {
  background: #0b6b4f;
}
.proj-create-docs.is-active .proj-create-docs-switch::after {
  transform: translateX(18px);
}
.proj-create-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  padding: 12px 16px 14px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.4), rgba(11, 107, 79, 0.05));
  border-top: 1px solid rgba(20, 32, 27, 0.06);
  box-sizing: border-box;
}
.proj-create-actions .proj-create-cancel[hidden],
.proj-create-actions .proj-create-submit[hidden] {
  display: none !important;
}
.proj-create-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font: inherit;
}
.proj-create-submit {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  font-size: 0.98rem;
  font-weight: 750;
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(11, 107, 79, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.proj-create-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11, 107, 79, 0.28);
}
.proj-board--link.is-owner,
.proj-board--detail.is-owner {
  outline: 1px solid rgba(16,185,129,0.28);
}
@media (max-width: 720px) {
  .proj-create-hero-inner {
    padding: 12px 14px;
  }
  .proj-create-split {
    grid-template-columns: 1fr;
  }
  .proj-create-block-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .proj-create-actions {
    grid-template-columns: 1fr;
  }
  .proj-create-actions .proj-create-cancel {
    order: 2;
  }
}
@media (max-width: 960px) {
  .proj-create-page .proj-metrics {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px) {
  .proj-create-page .proj-metrics {
    grid-template-columns: 1fr;
  }
  .proj-create-block,
  .proj-create-actions,
  .proj-create-hero-inner {
    padding-left: 12px;
    padding-right: 12px;
  }
}
