/* Shared by the customer account and the dashboard: status pills, the design progress line,
   attachments, the picture viewer and the conversation view. Uses each page's own colors. */
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;letter-spacing:.02em;padding:4px 10px;border-radius:999px;white-space:nowrap;line-height:1.2}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.8}
.pill.t-act{background:#f6e7c8;color:#6b4a12}
.pill.t-wait{background:#dfe8e2;color:#25483a}
.pill.t-done{background:#d9ecdf;color:#1e4a2e}
.pill.t-off{background:var(--sunk);color:var(--muted)}
@media (prefers-color-scheme:dark){.pill.t-act{background:#3a2f18;color:#f1d9a4}.pill.t-wait{background:#1f2e26;color:#b7d6c3}.pill.t-done{background:#1b3324;color:#b5e0c3}}

.stepper{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));position:relative}
.stepper::before{content:"";position:absolute;left:7%;right:7%;top:8px;height:2px;background:var(--line)}
.stepper li{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:12px;color:var(--muted);text-align:center;position:relative}
.stepper i{width:18px;height:18px;border-radius:50%;background:var(--surface);border:2px solid var(--line);position:relative;z-index:1}
.stepper li.past i{background:var(--accent);border-color:var(--accent)}
.stepper li.now i{background:var(--brass);border-color:var(--brass);box-shadow:0 0 0 4px color-mix(in srgb,var(--brass) 25%,transparent)}
.stepper li.now span{color:var(--ink);font-weight:800}
@media (max-width:560px){.stepper span{font-size:10.5px}.stepper li:not(.now) span{opacity:.7}}

.atts{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.att{display:block;text-decoration:none;color:inherit;border-radius:12px;overflow:hidden}
.att.img{width:150px;max-width:100%;aspect-ratio:4/3;background:var(--sunk)}
.att.img img{width:100%;height:100%;object-fit:cover;display:block}
.att.doc{display:flex;align-items:center;gap:10px;padding:8px 12px 8px 8px;background:color-mix(in srgb,var(--surface) 80%,transparent);border:1px solid var(--line);max-width:260px}
.att.doc .ext{width:40px;height:40px;border-radius:9px;background:var(--sunk);display:flex;align-items:center;justify-content:center;font-size:10.5px;font-weight:800;color:var(--muted);flex:none}
.att.doc .nm{font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.att.doc small{display:block;font-weight:400;color:var(--muted);font-size:12px}
.lightbox{position:fixed;inset:0;z-index:500;background:rgba(6,9,7,.92);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;gap:12px}
.lightbox img{max-width:100%;max-height:calc(100% - 60px);object-fit:contain;border-radius:8px}
.lb-bar{display:flex;gap:10px}
.lb-bar a,.lb-bar button{border:1px solid rgba(255,255,255,.3);background:none;color:#fff;border-radius:999px;padding:9px 18px;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}

/* the conversation */
.chat{display:flex;flex-direction:column;min-height:0;height:100%;background:var(--paper,var(--bg));position:relative}
.chat.drag-over::after{content:"Drop files to attach";position:absolute;inset:8px;border:2px dashed var(--accent);border-radius:16px;background:color-mix(in srgb,var(--surface) 80%,transparent);display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--accent);z-index:5}
.chat-scroll{flex:1;min-height:0;overflow-y:auto;padding:18px clamp(12px,3vw,26px) 10px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.chat-list{display:flex;flex-direction:column;gap:4px;max-width:820px;margin:0 auto}
.chat-empty{color:var(--muted);text-align:center;padding:40px 10px;font-size:15px}
.day{display:flex;justify-content:center;margin:14px 0 8px}
.day span{font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--muted);background:var(--sunk);padding:4px 12px;border-radius:999px}
.msg-row{display:flex;margin:2px 0}
.msg-row.mine{justify-content:flex-end}
.bub{max-width:min(78%,560px);padding:10px 14px 7px;border-radius:18px;background:var(--surface);border:1px solid var(--line);font-size:15.5px;line-height:1.45;overflow-wrap:anywhere;box-shadow:0 1px 1px rgba(0,0,0,.04)}
.msg-row.mine .bub{background:var(--accent);color:var(--accent-ink);border-color:transparent;border-bottom-right-radius:6px}
.msg-row.theirs .bub{border-bottom-left-radius:6px}
.bub .who{display:block;font-size:12.5px;color:var(--brass);margin-bottom:2px}
.bub time{display:block;text-align:end;font-size:11.5px;opacity:.65;margin-top:3px;font-variant-numeric:tabular-nums}
.bub .txt{white-space:normal}
.bub.prop{border:1.5px solid var(--brass);background:color-mix(in srgb,var(--brass) 8%,var(--surface))}
.msg-row.mine .bub.prop{color:var(--ink);background:color-mix(in srgb,var(--brass) 12%,var(--surface))}
.mtag{display:inline-block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:800;color:var(--brass);margin-bottom:4px}
.mtag.ok{color:#2b7a4b}
.msg-row.mine .mtag{color:inherit;opacity:.85}
.msg-row.mine .att.doc{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.2)}
.msg-row.mine .att.doc .ext{background:rgba(255,255,255,.18);color:inherit}
.msg-row.mine .att.doc small{color:inherit;opacity:.75}
.msg-sys{display:flex;flex-direction:column;align-items:center;gap:2px;margin:10px auto;max-width:520px;text-align:center;font-size:13.5px;color:var(--muted)}
.msg-sys span{background:var(--sunk);padding:6px 14px;border-radius:14px;white-space:pre-line}
.msg-sys time{font-size:11px;opacity:.75}
.composer{border-top:1px solid var(--line);background:var(--surface);padding:10px clamp(10px,2.4vw,20px) calc(10px + env(safe-area-inset-bottom,0px))}
.comp-files .chips{margin-bottom:8px}
.comp-files .msg{margin-bottom:8px}
.comp-row{display:flex;align-items:flex-end;gap:8px;max-width:820px;margin:0 auto}
.comp-row textarea{flex:1;min-width:0;border:1px solid var(--line);background:var(--paper,var(--bg));border-radius:22px;padding:11px 16px;font-size:16px;line-height:1.4;resize:none;max-height:180px;min-height:46px;color:var(--ink);font-family:inherit}
.comp-row textarea:focus{outline:none;border-color:var(--accent)}
.attach-btn,.send{width:46px;height:46px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none;cursor:pointer;border:0}
.attach-btn{background:var(--sunk);color:var(--ink)}
.attach-btn svg,.send svg{width:22px;height:22px}
.send{background:var(--accent);color:var(--accent-ink)}
.send:disabled{opacity:.4;cursor:default}
.send.wait{animation:pulse 1s infinite}
@keyframes pulse{50%{opacity:.5}}
.comp-hint{max-width:820px;margin:6px auto 0;font-size:12px;color:var(--muted);text-align:center}
@media (max-width:640px){.comp-hint{display:none}.bub{max-width:86%}}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.fchip{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:6px 8px 6px 6px;font-size:13.5px;max-width:100%}
.fchip img,.fchip .ic{width:38px;height:38px;border-radius:8px;object-fit:cover;background:var(--sunk);flex:none;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:var(--muted)}
.fchip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}
.fchip button{border:0;background:none;color:var(--muted);font-size:18px;cursor:pointer;padding:0 4px;line-height:1}
.fchip.up{opacity:.6}
.drop{border:1.5px dashed var(--line);border-radius:14px;padding:16px;text-align:center;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer}
.drop:hover,.drop.over{border-color:var(--accent);color:var(--ink)}
.drop b{color:var(--ink)}
.rh-up{display:flex;flex-direction:column;gap:10px}
