/* Sage Society help desk — tokens taken from sagesociety.in */
[hidden] { display: none !important; }
:root {
  --paper: #FFFDF8;
  --ink: #2B2118;
  --muted: #6B5D50;
  --butter: #FFF4D6;
  --mint: #E4F3EA;
  --blush: #FDE8E2;
  --sand: #F7F1E6;
  --line: #EFE7D9;
  --line-2: #CDBFAA;
  --hl: #FFD25E;
  --green: #0F6B4F;
  --green-2: #0B5640;
  --green-ink: #1E5C43;
  --coral: #D94A2B;
  --coral-ink: #B23A1F;
  --terra: #E8876B;
  --mustard: #EDCB72;
  --sage: #9FD3B6;
  --lilac: #C9B9F0;
  --dark-green: #263629;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Figtree, system-ui, sans-serif; font-size: 16px; line-height: 1.4; }
a { color: var(--ink); }
a:hover { color: var(--green); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { max-width: 440px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-s { display: flex; flex-direction: column; gap: 4px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 800; }

/* Header */
.hdr { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 8px; }
.logo { display: flex; align-items: center; gap: 4px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.circle-btn { width: 44px; height: 44px; border-radius: 22px; border: none; background: var(--sand); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; font-weight: 700; flex-shrink: 0; }
.talk { height: 44px; padding: 0 14px; border-radius: 22px; background: var(--mint); color: var(--green); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.talk:hover { color: var(--green-2); }
.step { font-size: 14px; font-weight: 700; color: var(--muted); }

/* Type */
h1, .h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.h1-l { font-size: 30px; line-height: 1.12; }
.hl { background: var(--hl); border-radius: 10px; padding: 0 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hand { font-family: Caveat, cursive; font-weight: 700; font-size: 21px; color: var(--green); line-height: 1.15; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }

/* Cards */
.card { border-radius: 26px; padding: 16px; position: relative; }
.c-butter { background: var(--butter); }
.c-mint { background: var(--mint); }
.c-blush { background: var(--blush); }
.c-sand { background: var(--sand); }
.c-white { background: #fff; border: 2.5px solid var(--line); }
.c-green { background: var(--green); color: #fff; }
.hero { border-radius: 30px; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.bird { position: absolute; top: -12px; right: 26px; }
.blob { border-radius: 55% 60% 50% 50% / 60% 55% 45% 40%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.blob.b2 { border-radius: 60% 50% 55% 50% / 50% 60% 45% 55%; }
.blob.b3 { border-radius: 50% 55% 60% 50% / 55% 50% 50% 45%; }

/* Home options */
.opt { text-decoration: none; color: var(--ink); border-radius: 26px; padding: 10px 14px 10px 12px; min-height: 74px; display: flex; align-items: center; gap: 14px; }
.opt .blob { width: 50px; height: 46px; }
.opt .t { font-size: 17px; font-weight: 800; }
.opt .s { font-size: 14px; color: var(--muted); }
.opt .go { width: 34px; height: 34px; border-radius: 17px; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.opt.off { opacity: .6; }
.big-opt { text-decoration: none; color: var(--ink); border-radius: 30px; padding: 20px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.big-opt .blob { width: 64px; height: 58px; }
.go-green { width: 44px; height: 44px; border-radius: 22px; background: var(--green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Pills / tags */
.pill { height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.p-mint { background: var(--mint); color: var(--green); }
.p-butter { background: #fff; border: 2px solid var(--mustard); color: #7A5A00; }
.p-blush { background: var(--blush); color: var(--coral-ink); }
.p-sand { background: var(--sand); color: var(--ink); }
.p-coral { background: var(--coral); color: #fff; }
.p-ink { background: var(--ink); color: var(--hl); }
.dot { width: 7px; height: 7px; border-radius: 4px; background: var(--coral); display: inline-block; }

/* Buttons */
.cta { height: 58px; border-radius: 999px; border: none; background: var(--green); color: #fff; text-decoration: none; display: flex; align-items: center; justify-content: space-between; padding: 0 9px 0 24px; font-size: 18px; font-weight: 800; cursor: pointer; width: 100%; }
.cta:hover { color: #fff; background: #0d5e45; }
.cta .arrow { width: 42px; height: 42px; border-radius: 21px; background: var(--green-2); display: inline-flex; align-items: center; justify-content: center; }
.cta[disabled], .cta.disabled { background: #EFE7D9; color: var(--muted); pointer-events: none; }
.cta[disabled] .arrow, .cta.disabled .arrow { background: #E2D7C4; }
.cta[disabled] .arrow svg path, .cta.disabled .arrow svg path { stroke: var(--muted); }
.btn { height: 50px; border-radius: 999px; border: none; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; padding: 0 18px; }
.btn-sand { background: var(--sand); color: var(--ink); }
.btn-mint { background: var(--mint); color: var(--green); }
.btn-outline { background: #fff; border: 2.5px solid var(--green); color: var(--green); }
.btn-danger { background: var(--coral-ink); color: #fff; }
.btn-danger-o { background: #fff; border: 2.5px solid var(--coral); color: var(--coral-ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-full { width: 100%; }
.linkbtn { background: none; border: none; padding: 0; height: 44px; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sub-link { display: flex; align-items: center; justify-content: center; min-height: 36px; font-size: 13px; color: var(--muted); text-decoration: none; gap: 4px; }
.sub-link b { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span.l { font-size: 15px; font-weight: 800; }
.input { height: 54px; border-radius: 18px; border: 2.5px solid var(--line); background: #fff; padding: 0 16px; font-size: 17px; font-weight: 600; outline: none; width: 100%; }
.input:focus { border-color: var(--green); }
textarea.input { height: auto; min-height: 118px; padding: 14px 16px; line-height: 1.4; resize: vertical; font-weight: 500; font-size: 16px; }
.input::placeholder { color: #7D6E5E; font-weight: 500; }
.ok-line { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--green); }
.err-line { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--coral-ink); }
.alert { border-radius: 18px; padding: 12px 14px; font-size: 14px; line-height: 1.4; }
.alert-err { background: var(--blush); color: var(--coral-ink); font-weight: 600; }
.alert-ok { background: var(--mint); color: var(--green-ink); }
.alert-warn { background: var(--butter); }

/* Select rows (items, radios) */
.sel { width: 100%; min-height: 84px; border-radius: 24px; padding: 10px 14px 10px 10px; display: flex; align-items: center; gap: 12px; background: #fff; border: 2.5px solid var(--line); cursor: pointer; text-align: left; }
.sel.on { background: var(--mint); border-color: var(--green); }
.sel .thumb { width: 64px; height: 64px; border-radius: 16px; background: var(--sand); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sel .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tick { width: 32px; height: 32px; border-radius: 16px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 2.5px solid var(--line-2); }
.on > .tick, .tick.on { background: var(--green); border-color: var(--green); }
.tick svg { opacity: 0; }
.on > .tick svg, .tick.on svg { opacity: 1; }
.item-wrap { border-radius: 24px; border: 2.5px solid var(--line); background: #fff; overflow: hidden; }
.item-wrap.on { background: var(--mint); border-color: var(--green); }
.item-wrap .sel { border: none; background: transparent; border-radius: 0; }
.counter { margin: 0 10px 12px; background: #fff; border-radius: 18px; padding: 10px 10px 10px 14px; display: none; align-items: center; justify-content: space-between; gap: 10px; }
.item-wrap.on .counter { display: flex; }
.counter button { width: 44px; height: 44px; border-radius: 22px; border: none; background: var(--sand); font-size: 22px; font-weight: 800; cursor: pointer; }
.counter .n { min-width: 54px; text-align: center; font-size: 20px; font-weight: 800; }
.chip { height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; background: #fff; border: 2.5px solid var(--line); }
.chip.on { background: var(--mint); border-color: var(--green); }
.radio-row { width: 100%; min-height: 50px; border-radius: 18px; padding: 0 14px; display: flex; align-items: center; gap: 10px; background: #fff; border: 2.5px solid var(--line); cursor: pointer; text-align: left; font-weight: 700; }
.radio-row.on { border-color: var(--ink); }
.radio-row .r { width: 24px; height: 24px; border-radius: 12px; border: 2px solid var(--line-2); margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.radio-row.on .r { background: var(--ink); border-color: var(--ink); }
.radio-row.on .r::after { content: ''; width: 10px; height: 10px; border-radius: 5px; background: #fff; }

/* Photo boxes */
.shot { width: 100%; border-radius: 24px; padding: 10px; display: flex; align-items: center; gap: 12px; background: #fff; border: 2.5px dashed var(--line-2); cursor: pointer; text-align: left; position: relative; }
.shot.done { border-style: solid; border-color: var(--green); }
.shot .pic { width: 84px; height: 92px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; overflow: hidden; }
.shot .pic img.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot .badge { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 13px; background: var(--green); border: 3px solid var(--paper); display: none; align-items: center; justify-content: center; z-index: 2; }
.shot.done .badge { display: inline-flex; }
.shot .act { align-self: flex-start; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; background: var(--hl); }
.shot.done .act { background: var(--mint); color: var(--green); }
.shot input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.thumbs .t { height: 76px; border-radius: 16px; background: var(--sand); overflow: hidden; position: relative; }
.thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.thumbs label.add { height: 76px; border-radius: 16px; border: 2.5px dashed var(--line-2); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; cursor: pointer; position: relative; }
.thumbs label.add input { position: absolute; inset: 0; opacity: 0; }

/* Timeline */
.tl { background: #fff; border: 2px solid var(--sand); border-radius: 26px; padding: 18px; display: flex; flex-direction: column; }
.tl-row { display: flex; gap: 14px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; width: 22px; }
.tl-dot { width: 22px; height: 22px; border-radius: 11px; flex-shrink: 0; background: #fff; border: 2.5px solid #D8CDBB; display: inline-flex; align-items: center; justify-content: center; }
.tl-dot.done { background: var(--green); border-color: var(--green); }
.tl-dot.now { background: var(--hl); border-color: var(--ink); }
.tl-line { width: 0; flex: 1; border-left: 2.5px dotted #D8CDBB; min-height: 22px; }
.tl-line.done { border-color: var(--green); }
.tl-txt { padding-bottom: 12px; display: flex; flex-direction: column; gap: 2px; }
.tl-row:last-child .tl-txt { padding-bottom: 0; }
.tl-txt b { font-size: 16px; font-weight: 800; }
.tl-txt span { font-size: 13px; color: var(--muted); }

/* Facts grid */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.facts > div { border-radius: 14px; padding: 9px 6px; display: flex; flex-direction: column; gap: 1px; align-items: center; text-align: center; }
.facts b { font-size: 14px; font-weight: 800; }
.facts span { font-size: 11px; color: var(--muted); }

/* Order mini */
.mini-items { display: flex; gap: 6px; align-items: center; }
.mini-items .m { width: 46px; height: 46px; border-radius: 14px; overflow: hidden; background: var(--sand); flex-shrink: 0; }
.mini-items .m img { width: 100%; height: 100%; object-fit: cover; }
.status-card { text-decoration: none; color: var(--ink); background: #fff; border: 2.5px solid var(--green); border-radius: 22px; padding: 10px 14px 10px 12px; display: flex; align-items: center; gap: 12px; }

/* Chat */
.chat-head { padding: 16px 16px 12px; background: var(--mint); border-radius: 0 0 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.chat-body { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.bub { max-width: 84%; border-radius: 22px; padding: 12px 14px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.bub.ai { align-self: flex-start; background: var(--butter); border-bottom-left-radius: 6px; }
.bub.team { align-self: flex-start; background: #fff; border: 2.5px solid var(--green); border-bottom-left-radius: 6px; }
.bub.me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 6px; }
.bub.sys { align-self: center; background: var(--sand); font-size: 13px; color: var(--muted); border-radius: 999px; padding: 6px 12px; }
.bub .who { display: block; font-size: 11px; font-weight: 800; color: var(--green); margin-bottom: 2px; }
.chat-foot { padding: 10px 14px 20px; display: flex; gap: 10px; align-items: center; position: sticky; bottom: 0; background: var(--paper); }
.chat-foot .input { border-radius: 999px; height: 54px; background: var(--sand); border-color: var(--sand); }
.send { width: 54px; height: 54px; border-radius: 27px; border: 2.5px solid var(--ink); background: var(--hl); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.chat-act { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-act a, .chat-act button { height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font-size: 14px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.typing { align-self: flex-start; font-size: 13px; color: var(--muted); }

/* Team */
.team-nav { position: sticky; bottom: 0; background: var(--paper); padding: 10px 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.team-nav a { height: 48px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 800; text-decoration: none; background: var(--sand); }
.team-nav a.on { background: var(--ink); color: #fff; }
.team-nav .count { background: var(--coral); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.tabs { display: flex; gap: 6px; background: var(--sand); border-radius: 999px; padding: 4px; }
.tabs a { flex: 1; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; text-decoration: none; color: var(--muted); }
.tabs a.on { background: var(--ink); color: #fff; }
.req-card { text-decoration: none; color: var(--ink); background: #fff; border-radius: 22px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border: 2.5px solid var(--line); }
.req-card.urgent { border-color: var(--coral); }
.req-thumbs { display: flex; gap: 4px; }
.req-thumbs span, .req-thumbs img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: var(--sand); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ph { height: 118px; border-radius: 16px; background: var(--sand); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.checks { display: flex; flex-direction: column; gap: 6px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.check svg { flex-shrink: 0; margin-top: 2px; }
.lightbox { position: fixed; inset: 0; background: rgba(43,33,24,.92); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.lightbox.on { display: flex; }
.lightbox img { max-height: 92vh; border-radius: 16px; }

@media (min-width: 900px) {
  .team .app { max-width: 720px; }
}

/* Extras for the team panel */
.p-lilac { background: var(--lilac); color: var(--ink); }
.radio-row input[type=radio] { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; flex-shrink: 0; }
.radio-row:has(input:checked) { border-color: var(--ink); }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.thumbs a.t { display: block; }
.ph img[data-zoom], .thumbs img[data-zoom] { cursor: zoom-in; }
.shot.busy .act-t::after { content: '…'; }
.bub.me .who { color: rgba(255,255,255,.75); }
.act-row { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.act-row a { height: 40px; padding: 0 14px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; }
.typing { align-self: flex-start; font-size: 13px; color: var(--muted); font-weight: 700; padding: 4px 8px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.dtable th, .dtable td { padding: 8px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.dtable th:first-child, .dtable td:first-child { text-align: left; }
.dtable th { font-size: 12px; color: var(--muted); font-weight: 800; }
.dtable tfoot td { font-weight: 800; border-bottom: none; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 10px; font-size: 12px; line-height: 1.45; white-space: nowrap; z-index: 2; }
.bar { cursor: pointer; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 12px; border-radius: 999px; background: var(--sand); color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; }
/* while typing, the bottom menu would sit on top of the keyboard and cover the field */
body:has(input:focus, textarea:focus, select:focus) .team-nav { display: none; }

