/* ---------- Work at KaziTu: conversational forms, task page, work feed, wallet, profiles ---------- */

/* conversational forms */
.convo-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--green-l); display: inline-grid; place-items: center; font-size: var(--fs-h4); }
.bubble-err { background: #FEF3F2 !important; border-color: #FECDCA !important; color: #B42318 !important; }
.money-prefix { align-self: center; font-weight: 700; color: var(--muted); padding: 0 2px 0 6px; font-size: var(--fs-ui); }
.chips-wrap { max-height: 300px; overflow-y: auto; padding: 2px; }
.roles-head { margin-bottom: 6px; }
.roles-list { display: grid; gap: 8px; margin-bottom: 8px; }
.role-row { display: flex; gap: 6px; align-items: center; }
.role-row input { padding: 9px 10px; }
.role-row input[type=text] { flex: 1; min-width: 0; }
.role-row .role-slots { width: 64px; flex: 0 0 64px; }
.role-row .role-amount { width: 110px; flex: 0 0 110px; }
.role-x { color: var(--muted); font-weight: 700; }
.role-row .ed-x { margin: 0; }
.convo-list { margin: 0 0 8px; padding-left: 22px; display: grid; gap: 4px; }
.convo-list li { padding-left: 2px; }
.convo-list li > span { display: inline-block; max-width: calc(100% - 44px); vertical-align: middle; }
.convo-list .ed-x { width: 28px; height: 28px; flex: 0 0 28px; margin: 0 0 0 6px; vertical-align: middle; font-size: var(--fs-base); }
.dz-files::before { content: '📎'; }
.dz-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.dz-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: var(--fs-ui); border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.dz-list li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-list .ed-x { width: 28px; height: 28px; flex: 0 0 28px; margin: 0; }
.convo-terms-scroll { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; background: #FCFCFD; font-size: var(--fs-md); }
.convo-terms-scroll h3, .terms-body h3 { font-size: var(--fs-ui); margin: 14px 0 4px; }
.convo-terms-scroll p { margin: 0 0 8px; }
.sig-input { font-family: 'Segoe Script', 'Brush Script MT', cursive; font-size: var(--fs-h3) !important; }
.convo-review { display: grid; grid-template-columns: minmax(90px, 160px) 1fr; gap: 6px 14px; margin: 0 0 6px; font-size: var(--fs-ui); }
.convo-review dt { color: var(--muted); font-weight: 700; text-transform: capitalize; }
.convo-review dd { margin: 0; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
/* steps bar: "Step 3 of 9" and a pill per question */
.wizard .progress { margin-bottom: 8px; }
.convo-steps { margin-bottom: 16px; }
.convo-steps:empty { display: none; }
.cs-count { margin-bottom: 4px; font-weight: 700; }
.cs-pills { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.cs-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px;
  padding: 4px 11px 4px 4px; font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; white-space: nowrap; }
.cs-pill i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: #F2F4F7; display: inline-grid; place-items: center; font-size: var(--fs-xs); }
.cs-pill.done { color: var(--green-d); border-color: var(--green-m); }
.cs-pill.done i { background: var(--green-m); }
.cs-pill.now { background: var(--green); border-color: var(--green); color: #fff; }
.cs-pill.now i { background: rgba(255,255,255,.25); }
.cs-pill:disabled { cursor: default; opacity: .6; }
.cs-pill:not(:disabled):not(.now):hover { border-color: var(--green); color: var(--green); }

/* deadline picker */
.when-quick, .when-times { margin-bottom: 8px; }
.when-times { padding-top: 8px; border-top: 1px dashed var(--line); align-items: center; }
.when-times .chip:disabled { opacity: .4; cursor: not-allowed; }
.when-date, .when-time { padding: 8px 10px; width: auto; }
.when-date { margin-bottom: 8px; }
.when-other { display: inline-flex; align-items: center; gap: 6px; }
.when-preview { font-weight: 700; color: var(--ink); font-size: var(--fs-ui); }
.when-preview.bad { color: var(--red); }

/* places, each with its own to-do list */
.stops { display: grid; gap: 10px; margin-bottom: 8px; }
.stop { border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: #FCFCFD; }
.stop.open { border-color: var(--green-m); background: #fff; }
.stop-head { display: flex; gap: 8px; align-items: center; }
.stop-n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: var(--fs-sm); display: grid; place-items: center; }
.stop-name { flex: 1; min-width: 0; padding: 8px 10px; font-weight: 700; }
.stop-head .ed-x { margin: 0; }
.stop-where { display: block; width: 100%; text-align: left; margin: 8px 0 0; background: none; border: 0; padding: 4px 0; font: inherit; font-size: var(--fs-ui); color: var(--green-d); cursor: pointer; }
.stop-where.empty { color: var(--orange-d); font-weight: 700; }
.stop-map { margin-top: 6px; }
.stop-list { margin: 8px 0 4px; font-size: var(--fs-ui); }
.stop-todo input { padding: 8px 10px; font-size: var(--fs-ui); border: 1px solid var(--line) !important; border-radius: 10px; }

/* attachments */
.attach-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.attach-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 84px; padding: 10px 14px; border: 1.5px dashed #D0D5DD; border-radius: 14px;
  background: #fff; font: inherit; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); cursor: pointer; }
.attach-btn:hover { border-color: var(--green); color: var(--green); }
.attach-ico { font-size: var(--fs-h2); line-height: 1; }
.attach-link { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; padding-left: 4px; }
.attach-note { margin-top: 6px; }
.composer-box.drag { border-color: var(--green); background: var(--green-l); }

@media (max-width: 520px) { .convo-review { grid-template-columns: 1fr; } .convo-review dd { margin-bottom: 6px; } .role-row { flex-wrap: wrap; } .role-row input[type=text] { flex-basis: 100%; } }

/* map picker */
.kmap-top { display: flex; gap: 8px; flex-wrap: wrap; }
.kmap-top input { flex: 1; min-width: 180px; padding: 10px 12px; }
.kmap-results { display: grid; gap: 2px; margin-top: 4px; }
.kmap-results button { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: var(--fs-md); cursor: pointer; }
.kmap-results button:hover { border-color: var(--green); }
.kmap-area { height: 260px; border-radius: 12px; overflow: hidden; margin-top: 8px; background: #F2F4F7; border: 1px solid var(--line); }
.kmap-note { margin-top: 6px; }

/* pop-ups, toasts */
.tmodal { position: fixed; inset: 0; z-index: 120; background: rgba(11, 27, 50, .55); display: grid; place-items: center; padding: 16px; animation: pop .18s ease-out; }
.tmodal-box { background: var(--bg); border-radius: 18px; width: min(600px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 14px 16px 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.tmodal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; position: sticky; top: -14px; background: var(--bg); padding: 6px 0; z-index: 2; }
.convo-in-modal .chat { min-height: 0; }
.convo-in-modal .composer { position: static; background: none; padding-top: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 140; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px;
  font-weight: 600; font-size: var(--fs-ui); box-shadow: var(--shadow); max-width: calc(100vw - 32px); transition: opacity .4s; }
.toast.bad { background: #B42318; }
.toast.out { opacity: 0; }
.update-bar { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; border: 0; border-radius: 99px;
  padding: 8px 16px; font: inherit; font-weight: 700; font-size: var(--fs-md); cursor: pointer; box-shadow: var(--shadow); }

/* shared bits */
.cat-chip { display: inline-flex; align-items: center; gap: 4px; background: #F2F4F7; color: var(--ink); border-radius: 99px; padding: 3px 10px; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.tbadge { display: inline-block; font-size: var(--fs-xs); font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.tb-open { background: #EFF8FF; color: #175CD3; } .tb-progress { background: var(--orange-l); color: var(--orange-d); } .tb-done { background: var(--green-l); color: var(--green-d); }
.tb-draft, .tb-off { background: #F2F4F7; color: var(--muted); } .tb-flag { background: #FEF3F2; color: #B42318; } .tb-warn { background: #FFFAEB; color: #B54708; }
.avatar-sm { width: 26px; height: 26px; flex: 0 0 26px; font-size: var(--fs-sm); box-shadow: none; }
.avatar-xs { width: 22px; height: 22px; flex: 0 0 22px; font-size: var(--fs-xs); box-shadow: none; }
.who { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; min-width: 0; }
.who > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.h-sm { font-size: var(--fs-h4); margin: 0 0 var(--sp-3); } .h-xs { font-size: var(--fs-ui); margin: var(--sp-5) 0 var(--sp-2); }
.tcount { font-size: var(--fs-xs); background: #F2F4F7; color: var(--text); border-radius: 99px; padding: 1px 7px; font-weight: 700; }
.tdot, .nbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: var(--fs-xs); font-weight: 700; }
.icon-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: inline-grid; place-items: center;
  font: inherit; font-size: var(--fs-ui); text-decoration: none; color: var(--ink); flex: 0 0 32px; }
.icon-btn:hover { border-color: #D0D5DD; background: #F9FAFB; }
.danger, .icon-btn.danger { color: #B42318 !important; }
.stars { color: #F79009; letter-spacing: 1px; white-space: nowrap; } .stars-off { color: #D0D5DD; }
.warn { color: var(--orange-d); }
.back-link { display: inline-block; margin-bottom: 10px; text-decoration: none; font-weight: 600; }

/* file type icons: each kind has its own colour */
.ficon { display: inline-grid; place-items: center; border-radius: 28%; flex: 0 0 auto; }
.ficon-image { background: #F4F3FF; color: #6938EF; } .ficon-pdf { background: #FEF3F2; color: #D92D20; } .ficon-doc { background: #EFF8FF; color: #1570EF; }
.ficon-sheet { background: #ECFDF3; color: #079455; } .ficon-slides { background: #FFF6ED; color: #E04F16; } .ficon-archive { background: #FEF7C3; color: #A15C07; }
.ficon-video { background: #FDF2FA; color: #C11574; } .ficon-audio { background: #F0F9FF; color: #026AA2; } .ficon-text { background: #F2F4F7; color: #475467; }
.ficon-design { background: #FFF1F3; color: #E31B54; } .ficon-link { background: #ECFDFF; color: #0E7090; } .ficon-other { background: #F2F4F7; color: #667085; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border: 1px solid var(--line); border-radius: 99px; background: #fff; text-decoration: none;
  color: var(--ink); font-size: var(--fs-sm); font-weight: 600; max-width: 100%; vertical-align: middle; }
.fchip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.fchip.off { color: var(--muted); padding-left: 9px; }
.mention { background: var(--green-l); color: var(--green-d); border-radius: 6px; padding: 0 4px; font-weight: 700; }

/* task page */
.flag-banner { background: #FEF3F2; border: 1px solid #FECDCA; color: #7A271A; border-radius: 16px; padding: var(--sp-4) var(--sp-5); margin-bottom: var(--stack); }
.flag-banner p { margin: 4px 0; }
.task-head { display: flex; gap: var(--sp-5); justify-content: space-between; align-items: flex-start; margin-bottom: var(--sp-6); }
.task-head-main { min-width: 0; flex: 1; }
.task-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.task-head h1 { font-size: var(--fs-h1); margin: 0 0 8px; overflow-wrap: anywhere; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--text); }
.task-progress { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 0 auto; }
.ring { --p: 0; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 79%), conic-gradient(var(--green) calc(var(--p) * 1%), #EAECF0 0); transition: background .3s; }
.ring b { color: var(--ink); font-size: var(--fs-h4); }
.publish-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: var(--stack); border: 2px solid var(--green-m); background: linear-gradient(135deg, #fff, var(--green-l)); }
.publish-card h2 { font-size: var(--fs-h4); margin: 0 0 4px; }
.publish-card > div:first-child { flex: 1; min-width: 240px; }
.publish-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.task-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-6); align-items: start; }
.task-side { position: sticky; top: 84px; display: grid; gap: var(--stack); }
.task-main .card, .task-side .card { padding: var(--card-pad-sm); box-shadow: none; }
.task-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; scrollbar-width: thin; }
.task-tabs button, .task-tabs a { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 10px 12px; font: inherit; font-weight: 700; font-size: var(--fs-ui); color: var(--muted); cursor: pointer; white-space: nowrap; text-decoration: none; }
.task-tabs button:hover, .task-tabs a:hover { color: var(--ink); }
.task-tabs .on { color: var(--green-d); border-bottom-color: var(--green); }
.tpanel { display: grid; gap: var(--stack); }
.task-desc { color: var(--ink); overflow-wrap: anywhere; }
.role-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.role-list li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.amt { margin-left: auto; font-weight: 800; color: var(--ink); }
.task-map { height: 280px; border-radius: 14px; overflow: hidden; margin-top: 14px; border: 1px solid var(--line); background: #F2F4F7; }

/* checklist: minimal rows, details on hover/tap */
.ck-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ck-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ck-sub { margin: 4px 0 4px 30px; }
.ck-item { position: relative; }
.ck-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.ck-row:hover, .ck-item.open > .ck-row { background: #F9FAFB; }
.ck-box { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--green); cursor: pointer; margin: 0; }
.ck-box:disabled { cursor: default; }
.ck-title { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.ck-item.done > .ck-row .ck-title { color: var(--muted); text-decoration: line-through; text-decoration-color: #98A2B3; }
.ck-meta { display: flex; gap: 6px; font-size: var(--fs-sm); color: var(--muted); flex: 0 0 auto; }
.ck-meta i { font-style: normal; }
.ck-who { color: var(--green-d); font-weight: 700; flex: 0 0 auto; }
.ck-pop { display: none; position: absolute; left: 30px; right: 0; top: calc(100% - 2px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; box-shadow: 0 18px 36px -14px rgba(16,24,40,.3); font-size: var(--fs-ui); }
.ck-pop p { margin: 6px 0 0; }
.ck-item:hover > .ck-pop, .ck-item.open > .ck-pop, .ck-row:focus + .ck-pop, .ck-pop:hover { display: block; }
.ck-item.open > .ck-pop { position: static; margin: 2px 0 6px 30px; box-shadow: none; }
.ck-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ck-actions { display: flex; gap: 14px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.ck-empty { margin: 6px 0 0; }
@media (hover: none) { .ck-item:hover > .ck-pop { display: none; } .ck-item.open > .ck-pop { display: block; } }
.ic-slot { margin-top: 10px; }
.ic { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; background: #fff; box-shadow: var(--shadow); }
.ic textarea { border: 0; box-shadow: none !important; padding: 6px; min-height: 60px; }
.ic-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ic-chip { display: inline-flex; align-items: center; gap: 4px; background: #F2F4F7; border-radius: 99px; padding: 3px 4px 3px 10px; font-size: var(--fs-sm); font-weight: 600; max-width: 100%; }
.ic-chip button { border: 0; background: none; cursor: pointer; font-size: var(--fs-base); line-height: 1; color: var(--muted); }
.ic-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.ic-inline input { flex: 1; min-width: 160px; padding: 8px 10px; }
.ic-inline .chip { padding: 6px 12px; font-size: var(--fs-sm); }
.ic-tools { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.ic-t { border: 0; background: #F9FAFB; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: var(--fs-sm); font-weight: 700; color: var(--text); cursor: pointer; }
.ic-t:hover { background: var(--green-l); color: var(--green-d); }
.ic-gap { flex: 1; }

/* files */
.link-add { display: flex; gap: 8px; margin: 10px 0 14px; }
.link-add input { flex: 1; min-width: 0; padding: 10px 12px; }
.upload-bars { display: grid; gap: 6px; margin-top: 8px; }
.up-bar .progress { margin: 4px 0 0; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.fcard { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; min-width: 0; }
.fthumb { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #F9FAFB; padding: 0; cursor: zoom-in; display: grid; place-items: center; }
.fthumb img { width: 100%; height: 100%; object-fit: cover; }
.finfo { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.finfo b { font-size: var(--fs-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.factions { display: flex; gap: 4px; flex: 0 0 auto; }
.pv { display: grid; place-items: center; }
.pv-img { max-width: 100%; max-height: 70vh; border-radius: 10px; }
.pv-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pv-link { display: grid; gap: 6px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; padding-bottom: 12px; width: 100%; background: #fff; }
.pv-link img { width: 100%; max-height: 300px; object-fit: cover; }
.pv-link b, .pv-link span { padding: 0 14px; overflow-wrap: anywhere; }
.pv-link > span:first-child { padding: 14px; }
.pv-none { text-align: center; padding: 20px; display: grid; justify-items: center; gap: 6px; }

/* task chat */
.chat-card { display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; }
.tchat { height: min(56vh, 520px); overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #FCFCFD; }
.tmsg { display: flex; gap: 8px; align-items: flex-end; max-width: 86%; }
.tmsg.me { align-self: flex-end; flex-direction: row-reverse; }
.tbubble { background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; font-size: var(--fs-ui); }
.tmsg.me .tbubble { background: var(--green); color: #fff; border: 0; border-radius: 16px 16px 4px 16px; }
.tmsg.me .tbubble a { color: #fff; }
.tmsg.me .fchip { color: var(--ink); }
.tname { display: block; font-size: var(--fs-xs); color: var(--green-d); margin-bottom: 2px; }
.tmsg time, .tmsg.sys time { display: block; font-size: var(--fs-xs); opacity: .65; margin-top: 3px; }
.tmsg.sys { align-self: center; max-width: 92%; flex-direction: column; align-items: center; gap: 0; background: #F2F4F7; border-radius: 12px; padding: 6px 12px;
  font-size: var(--fs-sm); color: var(--text); text-align: center; }
.tchat-form { position: relative; display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.tchat-form textarea { min-height: 44px; padding: 10px 12px; flex: 1; }
.mention-pop { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 36px -14px rgba(16,24,40,.35); padding: 6px; display: grid; gap: 2px; max-height: 280px; overflow-y: auto; z-index: 5; }
.mention-pop button { display: flex; align-items: center; gap: 8px; border: 0; background: none; border-radius: 10px; padding: 6px 8px; font: inherit; font-size: var(--fs-md); cursor: pointer; text-align: left; color: var(--ink); }
.mention-pop button > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-pop button.on, .mention-pop button:hover { background: var(--green-l); }

/* bids, logins, side */
.bid-list { display: grid; gap: 10px; }
.bid-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.bid-amt { font-weight: 800; font-size: var(--fs-h4); color: var(--ink); white-space: nowrap; }
.bid-msg { margin: 6px 0 0; white-space: pre-line; }
.bid-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bid-rejected, .bid-withdrawn { opacity: .6; }
.bid-accepted { border-color: var(--green-m); }
.cred-list { display: grid; gap: 10px; margin-top: 10px; }
.cred { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #FCFCFD; }
.cred-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.cred-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.cred-k { width: 56px; flex: 0 0 56px; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
.cred-v { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: var(--fs-md); overflow-x: auto; white-space: nowrap; }
.cred.shown .cred-v { border-color: var(--orange); }
.side-card { display: grid; gap: 8px; }
.side-k { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-price { font-size: var(--fs-num); font-weight: 800; color: var(--ink); line-height: 1.1; }
.escrow { margin: 0; background: var(--green-l); border-radius: 10px; padding: 8px 10px; color: var(--green-d) !important; }
.me-box { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.me-box p { margin: 0; }
.block-note { background: var(--orange-l); color: var(--orange-d); border-radius: 10px; padding: 6px 10px; margin: 4px 0 0; font-size: var(--fs-md); }
.team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.team-list li { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.team-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.team-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-box { display: grid; gap: 10px; text-align: center; }
.pay-box .big-price { font-size: 2.2rem; font-weight: 800; color: var(--ink); }
@media (max-width: 960px) {
  .task-grid { grid-template-columns: minmax(0, 1fr); gap: var(--stack); }
  .task-side { position: static; order: -1; }
  .task-head { flex-direction: row; }
}
@media (max-width: 600px) { .task-head, .work-hero { margin-bottom: var(--sp-4); } }
@media (max-width: 520px) { .task-progress .ring { width: 60px; height: 60px; } .ck-meta { display: none; } .tmsg { max-width: 94%; } }

/* work feed */
.work-hero { display: flex; justify-content: space-between; gap: var(--sp-4) var(--sp-5); align-items: flex-end; flex-wrap: wrap; margin-bottom: var(--sp-6); }
.work-hero h1 { font-size: var(--fs-h1); margin: 0 0 4px; }
.work-hero p { margin: 0; max-width: 620px; }
.work-hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wallet-chip { display: grid; grid-template-columns: auto auto; gap: 0 12px; align-items: center; text-decoration: none; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; }
.wallet-chip b { font-size: var(--fs-h4); grid-row: 2; }
.wallet-chip span:last-child { grid-row: 1 / span 2; grid-column: 2; color: var(--green); font-weight: 700; }
.work-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.work-filters input[type=search] { flex: 1; min-width: 180px; padding: 10px 12px; border: 1.5px solid #D0D5DD; border-radius: 12px; font: inherit; }
.work-filters select { width: auto; padding: 10px 12px; }
.seg { display: inline-flex; background: #F2F4F7; border-radius: 12px; padding: 3px; gap: 2px; }
.seg label, .seg a { margin: 0; padding: 7px 12px; border-radius: 9px; font-weight: 700; font-size: var(--fs-md); color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg .on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.near-bar { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; background: var(--green-l); border: 1px solid var(--green-m); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }
.near-bar > span { flex: 1; min-width: 200px; }
#pick-area { margin-bottom: 12px; display: grid; gap: 8px; }
.near-map { margin: 0 0 14px; height: 300px; }
.tcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--stack); }
.tcard { display: flex; flex-direction: column; gap: var(--sp-2); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: var(--sp-4); text-decoration: none; color: var(--text);
  transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0; }
.tcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #D0D5DD; }
.tcard-top { display: flex; align-items: center; gap: 8px; }
.tcard-top .small { margin-left: auto; }
.tcard h3 { font-size: var(--fs-h4); margin: 2px 0 0; overflow-wrap: anywhere; }
.tcard-desc { margin: 0; color: var(--muted); }
.tcard-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.tcard-foot .amt { margin: 0; }
.job-list { display: grid; gap: 8px; }
.job-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--text); }
.job-row:hover { border-color: var(--green); }
.job-ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: #F2F4F7; display: grid; place-items: center; font-size: var(--fs-h3); }
.job-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; gap: 2px; }
.job-main b { color: var(--ink); overflow-wrap: anywhere; }
.mini-bar { display: block; height: 5px; background: #EAECF0; border-radius: 99px; overflow: hidden; max-width: 240px; margin-top: 4px; }
.mini-bar span { display: block; height: 100%; background: var(--green); }
.list-h { margin: var(--sp-6) 0 var(--sp-2); }
@media (max-width: 600px) { .job-row { flex-wrap: wrap; } .job-row .tbadge { margin-left: 52px; } }

/* wallet */
.wallet-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--stack); margin-bottom: var(--stack); }
.wcard { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: var(--card-pad-sm); text-decoration: none; color: var(--text); }
a.wcard:hover { border-color: var(--green); }
.wcard b { font-size: var(--fs-num); color: var(--ink); line-height: 1.15; }
.wcard > span:not(.wc-ico) { font-weight: 700; color: var(--ink); }
.wcard small { color: var(--muted); }
.wc-ico { font-size: var(--fs-h2); width: 44px; height: 44px; border-radius: 12px; background: #F2F4F7; display: grid; place-items: center; margin-bottom: 6px; }
.wcard-bal { background: linear-gradient(135deg, var(--green), var(--green-d)); border: 0; color: #D1FADF; }
.wcard-bal b, .wcard-bal > span:not(.wc-ico) { color: #fff; }
.wcard-bal small { color: #D1FADF; }
.wcard-bal .wc-ico { background: rgba(255,255,255,.18); }
.wcard-bal .btn { margin-top: 10px; align-self: flex-start; background: #fff; color: var(--green-d) !important; box-shadow: none; }
.wd-card { margin-bottom: var(--stack); box-shadow: none; }
.wd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wd-list li { display: flex; gap: 8px 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.wd-note { flex-basis: 100%; }
.hist { list-style: none; margin: 10px 0 0; padding: 0; }
.hist-day { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 0 6px; }
.hist-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hist-ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: #F2F4F7; display: grid; place-items: center; }
.hist-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.hist-main b { color: var(--ink); }
.hist-amt { text-align: right; font-weight: 800; white-space: nowrap; display: flex; flex-direction: column; }
.hist-amt.in { color: var(--green-d); } .hist-amt.out { color: var(--ink); }
.hist-amt small { font-weight: 600; color: var(--muted); font-size: var(--fs-xs); }
@media (max-width: 760px) { .wallet-cards { grid-template-columns: 1fr; } }

/* public profile */
.pro-hero { position: relative; display: grid; grid-template-columns: 1fr auto; gap: var(--sp-5); align-items: center; margin-bottom: var(--stack);
  background: linear-gradient(135deg, #fff 55%, var(--green-l)); }
.pro-id { display: flex; gap: 18px; align-items: center; min-width: 0; }
.pro-id h1 { margin: 0; font-size: var(--fs-h1); }
.pro-photo { width: 96px; height: 96px; flex: 0 0 96px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 8px 20px -8px rgba(16,24,40,.3); }
.pro-initial { display: grid; place-items: center; background: linear-gradient(135deg, #12B76A, #05603A); color: #fff; font-size: 2.4rem; font-weight: 800; }
.pro-headline { margin: 2px 0 4px; font-weight: 600; color: var(--ink); }
.pro-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pro-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 18px; text-align: center; }
.pro-stats div { display: flex; flex-direction: column; }
.pro-stats b { font-size: var(--fs-num); color: var(--ink); line-height: 1.1; }
.pro-stats span { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.pro-edit { position: absolute; top: 14px; right: 14px; }
.pro-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--stack); align-items: start; }
.pro-col { display: grid; gap: var(--stack); min-width: 0; }
.pro-sec { box-shadow: none; padding: var(--card-pad-sm); }
.pro-sec h2 { font-size: var(--fs-h4); display: flex; gap: 8px; align-items: center; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--green-m); display: grid; gap: 14px; }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #fff; }
.timeline p { margin: 4px 0 0; }
.tl-date { display: block; }
.pro-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pro-tasks li { display: flex; gap: 10px; align-items: center; }
.pro-tasks li > span:nth-child(2), .pro-tasks li > a { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; text-decoration: none; color: var(--ink); }
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-chips span { background: var(--green-l); color: var(--green-d); border-radius: 99px; padding: 4px 11px; font-size: var(--fs-sm); font-weight: 700; }
.skill-chips.soft span { background: #F2F4F7; color: var(--text); }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-ui); }
.review { border-bottom: 1px solid var(--line); padding: 10px 0; }
.review:last-child { border-bottom: 0; }
.review p { margin: 4px 0; font-style: italic; color: var(--ink); }
@media (max-width: 900px) {
  .pro-hero { grid-template-columns: 1fr; }
  .pro-stats { grid-template-columns: repeat(3, 1fr); }
  .pro-grid { grid-template-columns: minmax(0, 1fr); }
  .pro-edit { position: static; justify-self: start; }
}
@media (max-width: 520px) { .pro-id { flex-direction: column; align-items: flex-start; } .pro-photo { width: 76px; height: 76px; flex-basis: 76px; } }

/* terms */
.terms-page { max-width: 820px; }
.terms-body { box-shadow: none; }


/* ---------- work feed: type hierarchy (title > price > description > meta) ---------- */
.task-tabs { overflow-y: hidden; } /* the -1px tab underline made a vertical scrollbar appear */
.task-tabs button, .task-tabs a { font-size: var(--fs-ui); font-weight: 600; }
.task-tabs .on { font-weight: 700; }
.work-hero p { font-size: var(--fs-base); color: var(--text); }
.wallet-chip .small { font-size: var(--fs-xs); }
.wallet-chip b { font-weight: 800; }
/* filter bar: every control the same height and text size */
.work-filters > input, .work-filters > select, .work-filters > .btn, .work-filters .seg { height: 44px; font-size: var(--fs-ui); }
.work-filters > input, .work-filters > select { padding: 0 12px; }
.work-filters select { color: var(--ink); }
.work-filters .seg { align-items: stretch; }
.seg label, .seg a { display: inline-flex; align-items: center; font-size: var(--fs-md); font-weight: 600; }
.seg .on { font-weight: 700; }
.work-filters > .btn { padding: 0 18px; }
/* task cards */
.cat-chip { font-size: var(--fs-xs); font-weight: 600; color: var(--text); }
.tcard-top .small { font-size: var(--fs-xs); }
.tcard h3 { font-size: var(--fs-h4); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.tcard-desc { font-size: var(--fs-md); color: var(--text); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard-foot { font-size: var(--fs-sm); color: var(--muted); }
.tcard-foot .amt { font-size: var(--fs-base); color: var(--ink); }
.amt-note { color: var(--ink); font-weight: 600; }

/* maps: Leaflet gives its layers z-index 400–1000. Keep them inside the map box so pop-ups, the header and toasts stay on top. */
.leaflet-container, .kmap-area, .task-map, .stop-map { position: relative; z-index: 0; isolation: isolate; }

/* public category pages: /kazi/<slug> */
.cat-hero { padding-bottom: var(--sp-8); }
.crumbs { margin-bottom: var(--sp-4); color: var(--muted); }
.crumbs a { text-decoration: none; font-weight: 600; }
.cat-hero-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-size: var(--fs-h2); box-shadow: var(--shadow); }
.cat-hero h1 { margin: var(--sp-4) 0 var(--sp-6); max-width: 820px; }
.cat-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--stack); max-width: 900px; }
.cat-sides > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: var(--card-pad-sm); display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.cat-sides b { color: var(--ink); font-size: var(--fs-h4); }
.cat-sides p { margin: 0 0 var(--sp-2); flex: 1; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--sp-3); }
.idea-card { display: flex; align-items: center; gap: var(--sp-3); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: var(--sp-3) var(--sp-4);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: var(--fs-ui); transition: border-color .15s; }
.idea-card:hover { border-color: var(--green); }
.idea-card span { font-size: var(--fs-h4); }
.empty .actions { justify-content: center; }
@media (max-width: 700px) { .cat-sides { grid-template-columns: 1fr; } }
.stop-note { margin-top: var(--sp-2); padding: 8px 10px; font-size: var(--fs-md); min-height: 0; border: 1px solid var(--line) !important; border-radius: 10px; }

/* ---------- simple mode: the chat's questions as one plain form ---------- */
.convo-form-mode .chat { min-height: 0; gap: 0; }
.convo-form-mode .composer-actions .btn, .convo-form-mode .composer-actions .link-btn { display: none; } /* Submit checks every field */
.convo-form-mode .composer-actions { margin-top: var(--sp-1); }
.convo-form-mode .composer-actions:has(.err:empty) { display: none; }
.ff-intro { margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); background: var(--green-l); border-radius: 12px; color: var(--green-d); font-size: var(--fs-ui); }
.ff-list { display: grid; gap: var(--sp-6); }
.ff[hidden] { display: none; }
.ff-head { margin-bottom: var(--sp-2); }
.ff-label { color: var(--ink); font-weight: 700; font-size: var(--fs-base); display: flex; align-items: center; gap: var(--sp-2); }
.ff-opt { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); background: #F2F4F7; border-radius: 99px; padding: 1px 8px; }
.ff-desc { margin: 2px 0 0; color: var(--text); font-size: var(--fs-md); }
.ff-hint { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.convo-form-mode .composer-box { box-shadow: none; border-radius: 14px; padding: var(--sp-3); }
.convo-form-mode .composer-row input, .convo-form-mode .composer-row textarea { border: 1px solid var(--line) !important; border-radius: 10px; }
.convo-form-mode .composer-row input:focus, .convo-form-mode .composer-row textarea:focus { border-color: var(--green) !important; box-shadow: 0 0 0 3px var(--green-m) !important; }
.ff-bad .composer-box { border-color: #FDA29B; }
.ff-submit { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-3); flex-wrap: wrap; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: var(--sp-3) var(--sp-4); box-shadow: var(--shadow); }
.ff-status { flex: 1; min-width: 0; font-size: var(--fs-md); color: var(--muted); }
.ff-status.err { color: var(--red); font-weight: 600; }
.ff-status.ok { color: var(--green-d); font-weight: 700; }
.convo-in-modal .ff-submit { box-shadow: none; }
/* switch between the chat and the simple form, at the top of each form */
.mode-switch { display: inline; margin: 0; }
.mode-switch button { font-size: var(--fs-sm); }
.over-note { flex-basis: 100%; margin: 0 0 var(--sp-1); color: var(--orange-d); font-weight: 600; }
.auto-hire { display: flex; gap: var(--sp-2); align-items: flex-start; justify-content: space-between; background: #F9FAFB; border: 1px solid var(--line); border-radius: 10px; padding: var(--sp-2) var(--sp-3); }
.auto-hire.on { background: var(--green-l); border-color: var(--green-m); color: var(--green-d); }
.auto-hire .link-btn { flex: 0 0 auto; }
