/* Inbox — stari (classic) izgled; u UI3 je fajl isključen (data-ui-classic), stil je u ui3.css */
/* ===== Inbox (E skelet) ===== */
/* Bound the page to the viewport so list/thread scroll internally instead of
   stretching the whole HQ page when there are many conversations. */
.inbx-page{display:flex;flex-direction:column;gap:16px;height:calc(100dvh - 96px);max-height:calc(100dvh - 96px);min-height:0;overflow:hidden;box-sizing:border-box;padding-bottom:10px}
.inbx-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;flex:0 0 auto}
.inbx-kicker{font:700 10px "Space Mono",monospace;letter-spacing:.14em;color:var(--moonya-muted,#667085);text-transform:uppercase}
.inbx-head-copy h1{margin:4px 0 4px;font-family:'Bricolage Grotesque',sans-serif;font-size:34px;font-weight:800;color:var(--moonya-ink,#101828);letter-spacing:-.02em}
.inbx-head-copy p{margin:0;color:var(--moonya-muted,#667085);font-size:13.5px}
.inbx-section-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto}
.inbx-section-tabs{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--moonya-line,#e8edf7);border-radius:14px;background:var(--moonya-surface,#fff);box-shadow:0 7px 22px rgba(9,43,120,.05)}
.inbx-section-tab{min-height:38px;padding:8px 16px;border:0;border-radius:10px;background:transparent;color:var(--moonya-muted,#667085);font:inherit;font-weight:750;font-size:12px;line-height:1.2;cursor:pointer}
.inbx-section-tab:hover{background:var(--moonya-surface-blue,#f7f9fe);color:var(--moonya-ink,#101828)}
.inbx-section-tab.on{background:linear-gradient(115deg,#103e94 0%,#215bc3 54%,#8350d8 100%);color:#fff;box-shadow:0 7px 18px rgba(21,89,187,.2)}
.inbx-refresh{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 13px;border:1px solid var(--moonya-line,#e8edf7);border-radius:12px;background:#fff;color:var(--moonya-ink,#101828);font:inherit;font-weight:750;font-size:12px;line-height:1.2;cursor:pointer}
.inbx-refresh:hover{border-color:#9bd9e8;background:#f6fcfe}
.inbx-refresh svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.inbx-section-tab:focus-visible,.inbx-refresh:focus-visible{outline:3px solid rgba(18,200,242,.45);outline-offset:3px}
.inbx-body{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(220px,270px) minmax(0,1fr);gap:14px;overflow:hidden}
.inbx-list,.inbx-thread{background:var(--moonya-surface,#fff);border:1px solid var(--moonya-line,#e8edf7);border-radius:22px;box-shadow:var(--moonya-shadow,0 18px 48px rgba(9,43,120,.08));display:flex;flex-direction:column;overflow:hidden;min-height:0;height:100%;max-height:100%}
.inbx-filters{display:flex;gap:6px;flex-wrap:nowrap;min-width:0;padding:14px 14px 10px;border-bottom:1px solid var(--moonya-line,#e8edf7);overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;flex:0 0 auto}
.inbx-filters::-webkit-scrollbar{display:none}
.inbx-chip{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;white-space:nowrap;padding:6px 11px;border-radius:999px;border:1px solid var(--moonya-line,#e8edf7);background:#fff;font-size:11.5px;font-weight:700;color:var(--moonya-ink,#101828);cursor:pointer}
.inbx-chip.on{border-color:#49c7e3;background:#f1fbfe}
.inbx-chip svg{width:13px;height:13px}
.inbx-chip:focus-visible,.inbx-convo:focus-visible,.inbx-back:focus-visible{outline:3px solid rgba(18,200,242,.24);outline-offset:2px}
.inbx-convos{flex:1 1 auto;min-height:0;overflow:auto;padding:8px;-webkit-overflow-scrolling:touch}
.inbx-convo{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:1px solid transparent;border-radius:14px;background:none;cursor:pointer;text-align:left}
.inbx-convo:hover{background:var(--moonya-surface-blue,#f7f9fe)}
.inbx-convo.on{border-color:#49c7e3;background:#f1fbfe}
.inbx-avatar{flex:0 0 auto;width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#12c8f2,#8350d8);color:#fff;font-weight:800;font-size:14px;overflow:hidden}
.inbx-avatar img{width:100%;height:100%;object-fit:cover}
.inbx-convo-copy{flex:1;min-width:0}
.inbx-convo-copy b{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--moonya-ink,#101828)}
.inbx-convo-copy small{display:block;color:var(--moonya-muted,#667085);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inbx-unread{font-style:normal;font-size:9.5px;font-weight:800;color:#fff;background:var(--moonya-danger,#e45467);border-radius:999px;padding:1px 6px}
.inbx-convo-net svg{width:13px;height:13px;opacity:.7}
.inbx-thread-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid var(--moonya-line,#e8edf7);flex:0 0 auto}
.inbx-thread-head>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.inbx-thread-head b{font-size:14px;color:var(--moonya-ink,#101828)}
.inbx-thread-head span{font-size:11.5px;color:var(--moonya-muted,#667085);font-weight:700}
.inbx-back{display:none;width:34px;height:34px;place-items:center;flex:0 0 auto;border:1px solid var(--moonya-line,#e8edf7);border-radius:10px;background:#fff;color:var(--moonya-ink,#101828);font-size:17px}
.inbx-msgs{flex:1 1 auto;min-height:0;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:8px;-webkit-overflow-scrolling:touch}
.inbx-msg{max-width:72%;padding:9px 13px;border-radius:15px;font-size:13px;line-height:1.45}
.inbx-msg p{margin:0;white-space:pre-line;word-break:break-word}
.inbx-msg small{display:block;margin-top:5px;font-size:9.5px;opacity:.72}
.inbx-msg em{display:block;margin-top:5px;font-size:9.5px;font-style:normal;color:#b42318;word-break:break-word}
.inbx-msg.is-failed{border:1px solid #f0a3aa!important}
.inbx-msg.in{align-self:flex-start;background:var(--moonya-surface-blue,#f7f9fe);border:1px solid var(--moonya-line,#e8edf7);color:var(--moonya-ink,#101828)}
.inbx-msg.out{align-self:flex-end;background:linear-gradient(115deg,#103e94 0%,#215bc3 54%,#8350d8 100%);color:#fff}
.inbx-nomsg{color:var(--moonya-muted,#667085);font-size:12.5px;text-align:center;margin:auto}
.inbx-send{display:flex;gap:8px;padding:12px;border-top:1px solid var(--moonya-line,#e8edf7);flex:0 0 auto;background:var(--moonya-surface,#fff)}
.inbx-send textarea{flex:1;resize:none;border:1px solid var(--moonya-line,#e8edf7);border-radius:13px;padding:10px 12px;font:inherit;font-size:13px;min-height:40px;max-height:120px}
.inbx-attachments{display:grid;gap:7px;margin-top:7px}
.inbx-attachment{display:flex;align-items:center;gap:7px;max-width:100%;border-radius:10px;overflow:hidden;color:inherit;text-decoration:none}
.inbx-attachment.is-image{display:block;background:rgba(255,255,255,.12)}
.inbx-attachment.is-image img{display:block;width:100%;max-width:320px;max-height:280px;object-fit:contain;background:#0e1015}
.inbx-attachment.is-image span{display:block;padding:5px 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9.5px}
.inbx-attachment.is-image.is-broken img{display:none}
.inbx-attachment.is-file{padding:8px 10px;border:1px solid currentColor}
.inbx-attachment-media{display:block;width:min(100%,320px);max-height:280px;border-radius:10px;background:#0e1015}
.inbx-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:34px 22px;color:var(--moonya-muted,#667085)}
.inbx-empty-art{width:62px;height:62px;border-radius:19px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(18,200,242,.16),rgba(179,76,244,.16));color:#215bc3}
.inbx-empty h3{margin:4px 0 0;font-family:'Bricolage Grotesque',sans-serif;font-size:19px;font-weight:800;color:var(--moonya-ink,#101828)}
.inbx-empty p{margin:0;font-size:13px;max-width:38ch}
.inbx-empty .btn{margin-top:8px}
.inbx-post-avatar svg{width:18px;height:18px}
.inbx-external{display:inline-flex;align-items:center;gap:5px;margin-left:auto;color:#1761b8;font-size:11px;font-weight:750;text-decoration:none;white-space:nowrap}
.inbx-external:hover{text-decoration:underline}
.inbx-comment-thread{flex:1 1 auto;min-height:0;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:8px;-webkit-overflow-scrolling:touch}
.inbx-comment{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;margin-left:calc(var(--inbx-depth,0) * 24px);padding:10px;border:1px solid var(--moonya-line,#e8edf7);border-radius:14px;background:var(--moonya-surface,#fff)}
.inbx-comment.is-owner{background:#f4f8ff;border-color:#d9e5f7}
.inbx-comment-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;overflow:hidden;background:linear-gradient(145deg,#12c8f2,#8350d8);color:#fff;font-size:12px;font-weight:800}
.inbx-comment-avatar img{width:100%;height:100%;object-fit:cover}
.inbx-comment-body{min-width:0}
.inbx-comment-body header{display:flex;align-items:center;gap:7px;min-width:0}
.inbx-comment-body header b{min-width:0;color:var(--moonya-ink,#101828);font-size:12.5px;overflow-wrap:anywhere}
.inbx-comment-body header em{padding:2px 6px;border-radius:999px;background:#e7f3ff;color:#1761b8;font-size:8.5px;font-style:normal;font-weight:800;text-transform:uppercase}
.inbx-comment-body header time{margin-left:auto;color:var(--moonya-muted,#667085);font-size:9.5px;white-space:nowrap}
.inbx-comment-body p{margin:5px 0 0;color:var(--moonya-ink,#101828);font-size:12.5px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}
.inbx-comment-body footer{display:flex;align-items:center;gap:10px;margin-top:6px;color:var(--moonya-muted,#667085);font-size:10px}
.inbx-comment-body footer button{padding:0;border:0;background:none;color:#1761b8;font:inherit;font-weight:800;font-size:10.5px;line-height:1.3;cursor:pointer}
.inbx-comment-body footer button:hover{text-decoration:underline}
.inbx-reply-box{border-top:1px solid var(--moonya-line,#e8edf7);background:#fff;flex:0 0 auto}
.inbx-reply-box>label{display:block;padding:10px 12px 0;color:var(--moonya-muted,#667085);font-size:10.5px;font-weight:750}
.inbx-reply-box .inbx-send{border-top:0;padding-top:8px}
.inbx-reply-box textarea:disabled{cursor:not-allowed;background:var(--moonya-ice,#f3f6fc)}
.inbx-review-detail{flex:1 1 auto;min-height:0;overflow:auto;padding:22px;-webkit-overflow-scrolling:touch}
.inbx-review-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}
.inbx-review-meta time{color:var(--moonya-muted,#667085);font-size:10.5px}
.inbx-stars{display:block;color:#f2a82f;font-size:13px;letter-spacing:.04em;line-height:1.2}
.inbx-convo-copy .inbx-stars{margin-top:4px;font-size:10px}
.inbx-review-detail>p{margin:18px 0;color:var(--moonya-ink,#101828);font-size:15px;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere}
.inbx-review-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin:14px 0}
.inbx-review-photos a{display:block;aspect-ratio:1;border-radius:13px;overflow:hidden;background:var(--moonya-ice,#f3f6fc)}
.inbx-review-photos img{width:100%;height:100%;object-fit:cover}
.inbx-owner-reply{margin-top:18px;padding:14px 16px;border:1px solid #cce8df;border-radius:14px;background:#f2fbf7}
.inbx-owner-reply b{color:#17644c;font-size:11px}
.inbx-owner-reply p{margin:5px 0 0;color:var(--moonya-ink,#101828);font-size:12.5px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}
@media (max-width:900px){
  .inbx-page{height:calc(100dvh - 88px);max-height:calc(100dvh - 88px)}
  .inbx-body{display:block;min-height:0}
  .inbx-list,.inbx-thread{min-height:0;height:100%;max-height:100%}
  .inbx-thread{display:none}
  .inbx-body.is-thread-open .inbx-list{display:none}
  .inbx-body.is-thread-open .inbx-thread{display:flex}
  .inbx-back{display:grid}
  .inbx-thread-head{justify-content:flex-start}
}
@media (max-width:620px){
  .inbx-page{height:calc(100dvh - 84px);max-height:calc(100dvh - 84px)}
  .inbx-head-copy h1{font-size:29px}
  .inbx-section-bar{align-items:stretch}
  .inbx-section-tabs{flex:1;min-width:0;overflow-x:auto}
  .inbx-section-tab{flex:1;min-width:max-content;padding-inline:12px}
  .inbx-refresh{width:42px;justify-content:center;padding:8px}
  .inbx-refresh span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .inbx-list,.inbx-thread{border-radius:17px}
  .inbx-msg{max-width:88%}
  .inbx-send{align-items:flex-end}
  .inbx-send .btn{min-width:76px}
  .inbx-comment{margin-left:calc(var(--inbx-depth,0) * 12px)}
  .inbx-comment-body header{align-items:flex-start;flex-wrap:wrap}
  .inbx-comment-body header time{width:100%;margin-left:0}
  .inbx-thread-head .inbx-external span:first-child{display:none}
  .inbx-review-detail{padding:17px}
}
