/* mutual.lk — teachers */
:root {
  --g50: #ecfdf5; --g100: #d1fae5; --g200: #a7f3d0; --g500: #10b981; --g600: #059669; --g700: #047857; --g800: #065f46; --g900: #064e3b; --g950: #022c22;
  --ink: #0f172a; --text: #334155; --muted: #64748b; --line: #e2e8f0; --line2: #edf2ef;
  --bg: #ffffff; --bg2: #f6faf8; --card: #ffffff;
  --amber: #b45309; --amber-bg: #fef3c7; --red: #b91c1c; --red-bg: #fee2e2; --blue-bg: #e0f2fe; --blue: #075985;
  --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
  --shadow-lg: 0 10px 40px rgba(6, 78, 59, .12);
  --font: "Inter", "Noto Sans Sinhala", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.lang-si, body.lang-ta { font-size: 15px; line-height: 1.7; }
img, svg { max-width: 100%; }
a { color: var(--g700); text-decoration: none; }
a:hover { color: var(--g800); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
.lang-si h1, .lang-ta h1 { line-height: 1.35; letter-spacing: 0; }
.lang-si h2, .lang-ta h2, .lang-si h3, .lang-ta h3 { line-height: 1.4; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.mt { margin-top: 24px; }
.nowrap { white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.ok { color: var(--g700); } .err { color: var(--red); } .warn { color: var(--amber); }

/* icons */
.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.ic-sm { width: 16px; height: 16px; } .ic-xs { width: 14px; height: 14px; } .ic-xl { width: 40px; height: 40px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none !important; line-height: 1.2; transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--g700); color: #fff; }
.btn-primary:hover { background: var(--g800); color: #fff; }
.btn-outline { background: #fff; color: var(--g800); border-color: var(--g200); }
.btn-outline:hover { border-color: var(--g700); color: var(--g800); background: var(--g50); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg2); color: var(--ink); }
.btn-ghost.danger:hover { color: var(--red); border-color: #fecaca; background: var(--red-bg); }
.btn-white { background: #fff; color: var(--g800); }
.btn-white:hover { background: var(--g50); color: var(--g900); }
.btn-fb { background: #1877f2; color: #fff; }
.btn-fb:hover { background: #166fe0; color: #fff; }
.btn-sm { padding: 7px 13px; font-size: .85rem; }
.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
form.inline { display: inline-flex; gap: 6px; margin: 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line2); }
.header-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none !important; font-size: 1.28rem; font-weight: 600; letter-spacing: -.02em; flex: none; }
.logo b { color: var(--g700); font-weight: 800; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--g600), var(--g800)); color: #fff; }
.logo-mark .ic { width: 19px; height: 19px; stroke-width: 2.2; }
.logo-light { color: #fff; } .logo-light b { color: var(--g200); }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; flex: 1; }
.main-nav > a, .nav-drop > a { color: var(--text); font-weight: 500; font-size: .93rem; padding: 8px 11px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.main-nav > a:hover, .nav-drop > a:hover { background: var(--bg2); color: var(--ink); text-decoration: none; }
.main-nav a.on { color: var(--g800); background: var(--g50); }
.nav-drop { position: relative; }
.drop { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60; }
.drop::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: .92rem; }
.drop a:hover { background: var(--bg2); color: var(--ink); text-decoration: none; }
.drop-right { left: auto; right: 0; }
.drop-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line2); margin-bottom: 4px; display: flex; flex-direction: column; }
.drop-head small { color: var(--muted); }
.nav-drop:hover .drop, .nav-drop:focus-within .drop, .nav-drop.open .drop { display: block; }
.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.langs a { padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.langs a.on { background: var(--g700); color: #fff; }
.langs a:hover { text-decoration: none; color: var(--ink); }
.langs a.on:hover { color: #fff; }
.avatar-btn { position: relative; border: 0; background: none; padding: 0; cursor: pointer; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--g700); color: #fff; font-weight: 700; flex: none; }
.avatar-soft { background: var(--g100); color: var(--g800); }
.avatar-lg { width: 52px; height: 52px; font-size: 1.3rem; }
.avatar-badge { position: absolute; right: -2px; bottom: -2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; color: var(--g700); display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 40px; height: 40px; place-items: center; cursor: pointer; color: var(--ink); }
.nav-mobile-extra { display: none; }

/* flash */
.flash-wrap { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 12px; font-size: .94rem; border: 1px solid; }
.flash-ok { background: var(--g50); border-color: var(--g200); color: var(--g900); }
.flash-err { background: var(--red-bg); border-color: #fecaca; color: #7f1d1d; }
.flash-info { background: var(--blue-bg); border-color: #bae6fd; color: var(--blue); }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, var(--g100), transparent 60%), radial-gradient(800px 400px at -10% 110%, #f0fdf4, transparent 60%), #fff; padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--g200); color: var(--g800); border-radius: 999px; padding: 6px 14px; font-size: .84rem; font-weight: 600; box-shadow: var(--shadow); }
.pill:hover { text-decoration: none; border-color: var(--g600); }
.pill-dot, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g500); box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); display: inline-block; }
.live-dot { animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, .05); } }
.eyebrow { color: var(--g700); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.lang-si .eyebrow, .lang-ta .eyebrow { text-transform: none; letter-spacing: .01em; font-size: .86rem; }
.page-head .eyebrow, .sec-head .eyebrow { margin-top: 0; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 18px; }
.hl { color: var(--g700); background: linear-gradient(transparent 62%, var(--g100) 62%); }
.lead { font-size: 1.08rem; color: var(--text); max-width: 640px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 16px; }
.hero-note { display: flex; align-items: center; gap: 6px; }
.swap-demo { position: relative; display: grid; gap: 10px; }
.demo-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-lg); }
.demo-card div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.demo-card small { color: var(--muted); font-weight: 600; }
.demo-card strong { color: var(--ink); font-size: 1.12rem; }
.demo-letter { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--g700); color: #fff; font-weight: 800; font-size: 1.2rem; flex: none; }
.demo-b { background: #0f766e; }
.demo-swap { justify-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--g50); color: var(--g700); border: 1px solid var(--g200); margin: -4px 0; position: relative; z-index: 1; }
.demo-match { justify-self: center; display: inline-flex; align-items: center; gap: 6px; background: var(--g700); color: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; margin-top: 6px; }
.to-arrow { color: var(--g600); font-weight: 700; }

/* stats */
.stats-band { background: var(--g900); color: #d1fae5; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 20px; }
.stat { display: flex; flex-direction: column; }
.stat strong { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--g200); }
.stats-admin { padding: 16px 0; }
.stats-admin .stat { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stats-admin .stat strong { color: var(--ink); }
.stats-admin .stat span { color: var(--muted); }

/* sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.section-tight { padding: 28px 0 64px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head.center { justify-content: center; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.page-head { padding: 40px 0 8px; background: linear-gradient(180deg, var(--bg2), #fff); }
.page-head h1 { margin-bottom: 8px; }
.page-head.center .lead { margin: 0 auto; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: 10px; }
details.card summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details.card[open] summary { margin-bottom: 12px; }

.req-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.req-card:hover { border-color: var(--g200); box-shadow: 0 6px 24px rgba(6, 78, 59, .08); }
.req-card.is-own { border-color: var(--g200); background: linear-gradient(180deg, #fbfefc, #fff); }
.req-head { display: flex; align-items: center; gap: 12px; }
.req-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.req-who strong { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg2); color: var(--text); border: 1px solid var(--line2); }
.tag-subject { background: var(--g50); color: var(--g800); border-color: var(--g100); }
.req-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr); gap: 12px; align-items: start; background: var(--bg2); border-radius: 12px; padding: 12px 14px; }
.route-from, .route-to { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.route-from strong { color: var(--ink); font-size: 1.02rem; }
.route-lbl { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lang-si .route-lbl, .lang-ta .route-lbl { text-transform: none; letter-spacing: 0; font-size: .78rem; }
.route-arrow { color: var(--g600); padding-top: 18px; }
.school-line { display: flex; gap: 5px; align-items: flex-start; color: var(--text); margin-top: 4px; }
.school-line .ic { margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 3px 0; }
.chip { font-size: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; color: var(--ink); }
.chip-more { color: var(--muted); }
.req-comment { font-size: .9rem; color: var(--text); margin: 0; font-style: italic; overflow-wrap: anywhere; }
.req-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; }
.contacts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 600; font-size: .9rem; }
.contacts a { display: inline-flex; align-items: center; gap: 5px; overflow-wrap: anywhere; }
.locked { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); font-weight: 500; }
.locked:hover { color: var(--g700); }
.req-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge-ok { background: var(--g50); color: var(--g800); border-color: var(--g200); }
.badge-warn { background: var(--amber-bg); color: var(--amber); border-color: #fde68a; }
.badge-err { background: var(--red-bg); color: var(--red); border-color: #fecaca; }
.badge-way { background: var(--g700); color: #fff; border-color: var(--g700); }

/* cycles */
.cycle-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.cycle-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cycle-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; position: relative; }
.cycle-list li { display: flex; gap: 12px; align-items: center; position: relative; }
.cycle-list li div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.cycle-list li strong { color: var(--ink); font-size: .95rem; }
.cycle-list li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; height: 12px; border-left: 2px dotted var(--g200); }
.cyc-dot { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--g50); color: var(--g800); font-weight: 800; font-size: .85rem; flex: none; border: 1px solid var(--g200); }
.cycle-time { border-top: 1px solid var(--line2); padding-top: 10px; }

.match-block { margin-bottom: 40px; }
.match-for { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--g100); margin-bottom: 18px; }
.match-for h2 { margin: 2px 0 4px; }
.match-for p { margin: 0; }
.match-counts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.mc { display: inline-flex; gap: 6px; align-items: baseline; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; color: var(--text); }
.mc strong { color: var(--ink); font-size: 1rem; }
a.mc:hover { text-decoration: none; border-color: var(--g200); }
.mc.on { background: var(--g700); border-color: var(--g700); color: #fff; }
.mc.on strong { color: #fff; }
.cycle-full { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 18px; background: var(--bg2); }
.cycle-full-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cycle-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.cycle-step { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.step-move { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.you-move { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; position: relative; box-shadow: var(--shadow); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--g700); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--text); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li .ic { color: var(--g700); margin-top: 4px; }
.ticks li.off { color: var(--muted); }
.ticks li.off .ic { color: #cbd5e1; }
.chain-visual { position: relative; height: 280px; max-width: 340px; margin: 0 auto; width: 100%; }
.chain-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--g600); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-dasharray: 5 6; }
.chain-node { position: absolute; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-lg); z-index: 1; }
.chain-node span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--g700); color: #fff; font-size: .85rem; }
.n1 { top: 10px; left: 0; } .n2 { top: 70px; right: 0; } .n3 { bottom: 10px; left: 30%; }

.cta-band { background: linear-gradient(120deg, var(--g800), var(--g700) 60%, var(--g600)); border-radius: 22px; padding: 40px; color: #d1fae5; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label, .filters label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: .95rem; color: var(--ink); background: #fff; border: 1px solid #cbd5e1; border-radius: var(--r-sm); padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--g600); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
select:disabled, input:disabled { background: var(--bg2); color: var(--muted); }
.input-sm { padding: 7px 10px; font-size: .88rem; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row > * { flex: 1 1 180px; min-width: 0; }
.form-row .w-30 { flex: 0 1 150px; }
.form label.check, label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; color: var(--text); cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--g700); flex: none; margin: 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 8px 28px 28px; box-shadow: var(--shadow); }
fieldset { border: 0; border-bottom: 1px solid var(--line2); margin: 0; padding: 22px 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
legend { font-size: 1.1rem; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; float: left; width: 100%; }
legend + * { clear: both; }
.leg-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--g50); color: var(--g800); border: 1px solid var(--g200); font-size: .88rem; font-weight: 800; flex: none; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 22px; flex-wrap: wrap; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.lbl { font-weight: 600; font-size: .9rem; color: var(--ink); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--text); background: #fff; }
.seg input:checked + span { background: var(--g700); color: #fff; border-color: var(--g700); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(16, 185, 129, .3); }
.wanted-picker { border: 1px solid var(--line); border-radius: 12px; max-height: 420px; overflow: auto; background: #fff; }
.wanted-picker > p { padding: 14px; margin: 0; }
.wz { border-bottom: 1px solid var(--line2); }
.wz:last-child { border-bottom: 0; }
.wz-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.wz-head label { flex: 1; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px; cursor: pointer; }
.wz-toggle { border: 0; background: var(--bg2); border-radius: 8px; padding: 4px 10px; font: inherit; font-size: .8rem; color: var(--text); cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.wz-toggle .ic { transition: transform .15s; }
.wz.open .wz-toggle .ic { transform: rotate(180deg); }
.wz-divs { display: none; padding: 4px 12px 12px 40px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.wz.open .wz-divs { display: grid; }
.wz-divs label { font-weight: 400; font-size: .9rem; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.wz.zone-on .wz-divs label { color: var(--muted); }
.wz-count { font-size: .78rem; color: var(--g700); font-weight: 700; }
.wanted-extra { padding: 10px 12px; background: var(--amber-bg); font-size: .88rem; }
#wantedSummary .chip { background: var(--g50); border-color: var(--g200); color: var(--g900); }
.drop-file { border: 2px dashed var(--g200); border-radius: 14px; padding: 22px; align-items: center !important; text-align: center; cursor: pointer; background: var(--g50); color: var(--g800) !important; }
.drop-file input { font-size: .85rem; max-width: 100%; }

.auth { padding: 48px 20px 72px; display: flex; justify-content: center; background: radial-gradient(800px 400px at 50% -10%, var(--g50), transparent 70%); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); }
.auth-wide { max-width: 560px; }
.auth-card h1 { font-size: 1.7rem; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* notices / empty */
.notice { display: flex; gap: 10px; align-items: center; background: var(--blue-bg); color: var(--blue); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: .92rem; }
.notice a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.notice-cta { background: var(--g50); color: var(--g900); border: 1px solid var(--g200); flex-wrap: wrap; }
.notice-cta span { flex: 1; min-width: 200px; }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--r); background: #fff; color: var(--muted); }
.empty .ic-xl { color: var(--g600); margin-bottom: 8px; }
.empty h3 { margin-bottom: 6px; }
.empty-sm { padding: 22px; }
.empty-sm p { margin: 0 0 4px; }

/* search */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--g800); border-color: var(--g700); }
.tabs-sm { margin-bottom: 14px; }
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
.filters-head { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.filters-head a { margin-left: auto; }
.filters select, .filters input { padding: 8px 10px; font-size: .9rem; }
.results { min-width: 0; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.results-head span { display: inline-flex; align-items: center; gap: 6px; }
.inline-filter { display: flex; gap: 8px; margin-bottom: 18px; max-width: 520px; }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 600; }
.pager span { border: 0; background: none; }
.pager a:hover { text-decoration: none; border-color: var(--g200); }
.pager a.on { background: var(--g700); color: #fff; border-color: var(--g700); }

/* dashboard */
.dash { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: 14px; }
.dash-main { min-width: 0; }
.member-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.member-head div { display: flex; flex-direction: column; min-width: 0; }
.member-head strong { color: var(--ink); }
.member-head .small { overflow-wrap: anywhere; }
.status { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.status-ok { background: var(--g50); color: var(--g800); }
.pay-list { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line2); display: flex; flex-direction: column; gap: 4px; }
.count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--g50); color: var(--g800); font-size: .9rem; vertical-align: middle; }
.is-paused { opacity: .7; }
.paused-lbl { font-size: .8rem; font-weight: 700; color: var(--amber); margin-bottom: 6px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 22px; justify-content: center; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; }
.price-card .ticks { flex: 1; }
.price-card.featured { border: 2px solid var(--g700); box-shadow: var(--shadow-lg); }
.ribbon { position: absolute; top: -13px; left: 30px; background: var(--g700); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 4px; color: var(--ink); }
.price strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.price small { font-weight: 700; color: var(--muted); }
.price span { color: var(--muted); }
.pay-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-m { display: flex; flex-direction: column; gap: 2px; background: var(--bg2); border-radius: 12px; padding: 12px 14px; }
.pay-m strong { color: var(--ink); }
.contact-list { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.contact-list a { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; color: var(--ink); font-weight: 600; }
.contact-list a:hover { background: var(--bg2); text-decoration: none; }
.contact-list a > .ic { color: var(--g700); width: 22px; height: 22px; }
.contact-list span { display: flex; flex-direction: column; }
.contact-list small { color: var(--muted); font-weight: 500; }

/* faq / prose */
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .15s; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 18px 16px; margin: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.table th { background: var(--bg2); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }

/* footer */
.site-footer { background: var(--g950); color: #a7f3d0; padding: 52px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer a { color: #d1fae5; display: block; padding: 3px 0; font-size: .92rem; }
.site-footer p { font-size: .92rem; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.site-footer p a { display: inline; }
.muted-light { color: #6ee7b7; margin-top: 12px !important; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(167, 243, 208, .15); margin-top: 36px; padding-top: 18px; padding-bottom: 22px; font-size: .84rem; color: #6ee7b7; }

/* responsive */
@media (max-width: 1100px) {
  .main-nav > a, .nav-drop > a { padding: 8px 8px; font-size: .9rem; }
}
@media (max-width: 980px) {
  .menu-btn { display: inline-grid; }
  .site-header { backdrop-filter: none; background: #fff; }
  .main-nav { display: none; position: fixed; top: 66px; left: 0; right: 0; height: calc(100vh - 66px); height: calc(100dvh - 66px); background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 40px; gap: 2px; margin: 0; overflow-y: auto; border-top: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-drop > a { padding: 13px 12px; font-size: 1rem; }
  .nav-drop .drop { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .nav-drop > a .ic { display: none; }
  .nav-mobile-extra { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
  .nav-mobile-extra a { padding: 13px 12px; color: var(--text); font-weight: 500; }
  .user-drop .drop { display: none !important; }
  .user-drop.open .drop { display: block !important; position: absolute; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 460px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .search-layout, .dash, .pay-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .header-in { gap: 10px; }
  .logo { font-size: 1.15rem; }
  .logo-mark { width: 30px; height: 30px; }
  .langs a { padding: 4px 8px; }
  .hero { padding: 36px 0 40px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px 16px; }
  .section { padding: 44px 0; }
  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .req-route { grid-template-columns: 1fr; gap: 6px; }
  .route-arrow { padding: 0; transform: rotate(90deg); justify-self: start; }
  .form-card { padding: 4px 16px 20px; border-radius: 14px; }
  .auth-card { padding: 24px 18px; }
  .cta-band { padding: 28px 22px; }
  .cycle-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .wz-divs { padding-left: 12px; }
  .btn-lg { padding: 12px 20px; }
  .hero-cta .btn { flex: 1 1 auto; }
}
.form .wz-head label, .form .wz-divs label, .form .wanted-extra label { flex-direction: row; align-items: center; gap: 10px; }
.form .wz-divs label { font-weight: 400; gap: 8px; }

/* registration wizard */
.wizard { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.wz-step { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.wz-step > span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: .85rem; }
.wz-step.on { color: var(--ink); }
.wz-step.on > span { background: var(--g700); border-color: var(--g700); color: #fff; }
.wz-step.done { color: var(--g800); }
.wz-step.done > span { background: var(--g50); border-color: var(--g200); color: var(--g700); }
a.wz-step:hover { text-decoration: none; }
.wz-line { flex: 0 1 60px; height: 2px; background: var(--line); min-width: 20px; }
.reg-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; background: var(--g50); border-color: var(--g200); box-shadow: none; }
.reg-summary > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reg-summary strong { color: var(--ink); }
.reg-alt { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; text-align: center; }

.form label > .small { font-weight: 400; }
.form label > .field-err { color: var(--red); font-weight: 600; }
#fComment.has-err { border-color: var(--red); box-shadow: 0 0 0 3px rgba(185, 28, 28, .12); }

/* priority / payment prompt */
.priority-box { display: flex; gap: 14px; align-items: flex-start; background: #fffbeb; border: 1px solid #fde68a; border-radius: 16px; padding: 16px 18px; margin: 18px 0 4px; color: #78350f; }
.priority-box strong { color: #78350f; font-size: 1.02rem; display: block; margin-bottom: 4px; }
.priority-box p { margin: 0; font-size: .93rem; }
.priority-box p + p { margin-top: 6px; }
.priority-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f59e0b; color: #fff; }
.priority-matches { display: flex; gap: 6px; align-items: center; font-weight: 700; color: var(--g800); }
.priority-inline { align-items: center; margin: 0 0 20px; flex-wrap: wrap; }
.priority-inline > div { flex: 1; min-width: 220px; }
a.badge-warn:hover { text-decoration: none; background: #fde68a; }
.match-for .badge { margin-bottom: 6px; }
.pkg-card { border: 2px solid var(--g700); }
.pkg-card .price { margin-top: 8px; }

/* PayHere */
.payhere-box { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--g200); background: var(--g50); border-radius: 14px; padding: 16px; margin-top: 8px; }
.payhere-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.payhere-head strong { color: var(--ink); font-size: 1.02rem; }
.payhere-box p { margin: 0; }
.payhere-box label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--ink); }
.payhere-cards { text-align: center; }

/* payment page */
.pay-hero { padding: 36px 0 4px; background: linear-gradient(180deg, var(--bg2), #fff); }
.pay-hero h1 { margin-bottom: 6px; }
.status-lg { font-size: 1rem; padding: 14px 16px; margin-top: 12px; }
.ph-card { display: grid; grid-template-columns: 1fr 1.15fr; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px rgba(6, 78, 59, .18); border: 1px solid var(--g200); }
.ph-pkg { background: radial-gradient(500px 300px at 0% 0%, rgba(16,185,129,.35), transparent 60%), linear-gradient(150deg, var(--g800), var(--g950)); color: #d1fae5; padding: 34px 32px; }
.ph-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(167,243,208,.15); border: 1px solid rgba(167,243,208,.35); color: #a7f3d0; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.ph-price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 8px; color: #fff; }
.ph-price strong { font-size: 3.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ph-price small { font-weight: 700; color: #a7f3d0; font-size: 1.1rem; }
.ph-price span { color: #a7f3d0; }
.ph-ticks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ph-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ph-ticks li .ic { color: #34d399; margin-top: 3px; flex: none; }
.ph-ticks strong { color: #fff; }
.ph-pay { position: relative; background: #fff; padding: 34px 32px; display: flex; flex-direction: column; gap: 12px; }
.ph-pay h2 { margin: 0; font-size: 1.45rem; }
.ph-pay p { margin: 0; }
.ph-ribbon { position: absolute; top: 18px; right: -34px; transform: rotate(35deg); background: #f59e0b; color: #fff; font-size: .72rem; font-weight: 800; padding: 5px 40px; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.lang-si .ph-ribbon, .lang-ta .ph-ribbon { text-transform: none; letter-spacing: 0; }
.ph-pay-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ph-logo { font-weight: 800; font-size: 1.05rem; color: #fff; background: linear-gradient(135deg, #2563eb, #1d4ed8); padding: 6px 12px; border-radius: 10px; letter-spacing: -.01em; }
.ph-steps { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ph-steps li { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--ink); }
.ph-steps span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--g50); color: var(--g800); border: 1px solid var(--g200); font-size: .78rem; font-weight: 800; flex: none; }
.ph-form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.ph-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.ph-btn { background: linear-gradient(135deg, var(--g600), var(--g800)); color: #fff; padding: 16px 22px; font-size: 1.08rem; border-radius: 14px; box-shadow: 0 10px 24px rgba(4,120,87,.35); }
.ph-btn:hover { color: #fff; filter: brightness(1.06); }
.ph-secure { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: .82rem; color: var(--muted); }
.ph-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--g700); padding: 20px 0; }
.other-ways { margin-top: 36px; }
.ow-title { font-size: 1.1rem; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.ow-title::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.ow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pay-history { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.link-muted { color: var(--muted); font-weight: 600; }
@media (max-width: 860px) {
  .ph-card, .ow-grid { grid-template-columns: 1fr; }
  .ph-pay { order: -1; }
  .ph-pkg, .ph-pay { padding: 26px 20px; }
  .ph-price strong { font-size: 2.8rem; }
}
.imp-bar { background: #b45309; color: #fff; font-size: .9rem; font-weight: 600; }
.imp-bar .wrap { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.imp-bar span { flex: 1; min-width: 180px; }

/* home: how-to video */
.video-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.video-box { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0f172a; box-shadow: var(--shadow-lg); border: 1px solid var(--g200); }
.video-box video, .video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #0f172a; }
@media (max-width: 980px) { .video-grid { grid-template-columns: 1fr; gap: 24px; } .video-grid > .video-box { order: -1; } }
.video-play { white-space: nowrap; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; border: 0; cursor: pointer; background: var(--g700); color: #fff; padding: 14px 26px 14px 18px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1.05rem; box-shadow: 0 12px 30px rgba(4,120,87,.45); }
.video-play:hover { background: var(--g800); }
@media (max-width: 720px) { .video-play { padding: 10px 18px 10px 12px; font-size: .95rem; } .video-play svg { width: 28px; height: 28px; } }

/* chat */
.chat-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e11d48; color: #fff; font-size: .72rem; font-weight: 800; }
.avatar-unread { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #e11d48; color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.chat-btn { margin-right: 4px; }
.chat-wrap { display: grid; grid-template-columns: 320px 1fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow); height: min(72vh, 720px); }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; background: var(--bg2); }
.chat-item { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line2); color: var(--ink); }
.chat-item:hover { background: #fff; text-decoration: none; }
.chat-item.on { background: #fff; box-shadow: inset 3px 0 0 var(--g700); }
.chat-item-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.chat-item-txt strong, .chat-item-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-placeholder { margin: auto; text-align: center; }
.chat-placeholder .ic-xl { color: var(--g600); }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.chat-head-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-back { display: none; font-size: 1.8rem; line-height: 1; color: var(--ink); padding: 0 6px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, #fbfdfc, #f4f8f6); }
.chat-hint { text-align: center; margin: auto 0; }
.msg { display: flex; flex-direction: column; max-width: 78%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; }
.bubble { padding: 9px 13px; border-radius: 16px; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.mine .bubble { background: var(--g700); color: #fff; border-bottom-right-radius: 4px; }
.theirs .bubble { background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.msg-time { font-size: .7rem; color: var(--muted); margin-top: 2px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { resize: none; min-height: 44px; max-height: 160px; }
.chat-note { padding: 0 14px 10px; margin: 0; }
.chat-main > .notice { margin: 12px; }
.chat-locked { display: flex; gap: 16px; align-items: flex-start; max-width: 680px; }
.chat-locked h2 { margin-bottom: 8px; }
@media (max-width: 860px) {
  .chat-wrap { grid-template-columns: 1fr; height: calc(100dvh - 170px); }
  .chat-wrap.has-conv .chat-list { display: none; }
  .chat-wrap:not(.has-conv) .chat-main { display: none; }
  .chat-back { display: block; }
  .msg { max-width: 88%; }
}
.cyc-admin { display: block; color: var(--text); overflow-wrap: anywhere; }
.cycle-list .badge { vertical-align: middle; }
.switch-row { flex-direction: row !important; align-items: flex-start !important; gap: 12px !important; font-weight: 400 !important; }
.switch-row input { margin-top: 4px; }
