/* Mithila Help */
.help-hero { position: relative; overflow: hidden; background: var(--pink-pale); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 56px); margin-bottom: 32px; }
.help-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 300px; height: 300px; background: url(/img/motif-fish.svg) no-repeat center / contain; opacity: .5; pointer-events: none; }
.help-hero h1 { max-width: 20ch; position: relative; z-index: 1; }
.help-hero p { color: var(--ink-2); max-width: 52ch; position: relative; z-index: 1; }
.help-search { position: relative; max-width: 620px; z-index: 2; }
.help-search .input { min-height: 56px; padding-left: 50px; border-radius: var(--r-pill); font-size: 1.05rem; box-shadow: var(--shadow-2); border-color: transparent; }
.help-search > .i { position: absolute; left: 18px; top: 18px; color: var(--ink-3); pointer-events: none; z-index: 1; }
.help-chips { margin-top: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.kb-cats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.kb-cat { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.kb-cat:hover { border-color: var(--pink-soft); box-shadow: var(--shadow-2); text-decoration: none; }
.kb-cat .app-tile-icon { flex: none; }
.kb-cat strong { display: block; }
.kb-cat .small { color: var(--ink-3); }
.kb-list { list-style: none; padding: 0; margin: 0; }
.kb-list li + li { border-top: 1px solid var(--line); }
.kb-list a { display: flex; gap: 12px; align-items: center; padding: 14px 4px; color: var(--ink); text-decoration: none; font-weight: 550; }
.kb-list a:hover { color: var(--pink-ink); }
.kb-list a .i { color: var(--ink-3); flex: none; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 4px; font-weight: 600; list-style: none; display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--pink-ink); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 4px 18px; color: var(--ink-2); }
.prose { font-size: 1.04rem; line-height: 1.7; max-width: 72ch; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose img { border-radius: var(--r-md); margin: 1em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose blockquote { margin: 1em 0; padding: 12px 16px; border-left: 4px solid var(--pink); background: var(--pink-pale); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose kbd, .prose code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.vote-box { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px 20px; background: var(--bg-soft); border-radius: var(--r-md); margin-top: 32px; }
.vote-box form { display: inline; }
.vote-box .btn[aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cta-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 24px; border-radius: var(--r-lg); background: var(--ink); color: #FBEFF5; }
.cta-card h2 { color: #fff; margin: 0; font-size: 1.25rem; }
.cta-card p { margin: 4px 0 0; color: #D9C3CF; }
/* Thread (chat-style) */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: min(640px, 88%); display: flex; flex-direction: column; gap: 4px; }
.msg .bubble { padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.msg .meta { font-size: .78rem; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.mine .bubble { background: var(--pink-pale); border-color: var(--pink-soft); border-bottom-right-radius: 4px; }
.msg.theirs .bubble { border-bottom-left-radius: 4px; }
.msg.internal .bubble { background: var(--warn-bg); border: 1px dashed color-mix(in srgb, var(--warn) 50%, transparent); }
.msg.system { align-self: center; max-width: 100%; }
.msg.system .bubble { background: none; border: 0; padding: 2px 8px; font-size: .85rem; color: var(--ink-3); text-align: center; }
.msg .files { display: flex; gap: 6px; flex-wrap: wrap; }
.msg .files a { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; padding: 4px 10px; border-radius: var(--r-pill); background: var(--bg-soft); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.composer { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 16px; }
@media (max-width: 760px) { .composer { bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); } }
.composer .textarea { min-height: 84px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.ticket-meta dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
.ticket-meta dt { color: var(--ink-3); }
.ticket-meta dd { margin: 0; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { cursor: pointer; font-size: 1.8rem; color: var(--line-strong); line-height: 1; padding: 2px; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #E8A100; }
.stars input:focus-visible + label { outline: 3px solid var(--pink); border-radius: 4px; }
.sla-chip { font-variant-numeric: tabular-nums; }
.desk-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.desk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .desk-grid { grid-template-columns: minmax(0, 1fr); } }
.desk-row-title { font-weight: 600; color: var(--ink); text-decoration: none; }
.desk-row-title:hover { text-decoration: underline; }
.locale-tabs { margin-bottom: 12px; }
.d-block { display: block; }
/* Foundation layout fix (scoped to this app): the drawer scrim must not take a grid cell on desktop. */
@media (min-width: 1001px) { .dash-scrim { display: none; } }
