@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root { color-scheme: dark; font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-synthesis: none; background: #0d0d0e; color: #f5f2eb; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: wait; }
.shell { min-height: 100vh; }
.topbar { height: 72px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #292620; background: #131314; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 800; letter-spacing: -.035em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: linear-gradient(145deg,#efcc83,#aa7932); color: #17120b; font-size: 20px; font-weight: 800; }
.identity { display: flex; align-items: center; gap: 20px; font-size: 12px; }
.muted { color: #99958c; line-height: 1.55; }
.eyebrow { margin: 0 0 8px; color: #d0ac69; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: 27px; letter-spacing: -.065em; }
h2 { margin-bottom: 8px; font-size: 23px; letter-spacing: -.055em; }
.quiet, .text-button { border: 0; background: transparent; color: #d9bd85; font-size: 12px; font-weight: 700; padding: 9px 0; }
.quiet:hover, .text-button:hover { color: #f7ddb0; }
.notice { padding: 11px 32px; background: #352b1b; border-bottom: 1px solid #735936; color: #f7daa6; font-size: 12px; }
.desk { display: grid; grid-template-columns: minmax(320px, 390px) minmax(0,1fr); min-height: calc(100vh - 72px); }
.queue { padding: 28px 20px 30px 32px; border-right: 1px solid #292620; background: #131314; }
.queue-head { padding: 0 8px 12px; }
.queue-head .muted { margin-bottom: 0; font-size: 12px; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; min-width: 0; }
.field-label { color: #bcb7aa; font-size: 11px; font-weight: 700; }
.input { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid #3a352d; border-radius: 11px; outline: none; background: #1d1c1b; color: #f5f2eb; font-size: 12px; }
.input:focus { border-color: #d0ac69; box-shadow: 0 0 0 3px #b98e4540; }
.input::placeholder { color: #817c73; }
select.input { appearance: none; padding-right: 29px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23d0ac69' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.queue-rows { display: flex; flex-direction: column; gap: 7px; max-height: calc(100vh - 300px); overflow-y: auto; padding-right: 6px; }
.queue-row { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 15px; border: 1px solid #2e2b26; border-radius: 14px; background: #1c1b1a; color: inherit; text-align: left; transition: background .16s, border-color .16s; }
.queue-row:hover { background: #25221e; }
.queue-row.active { background: #2a241b; border-color: #a78048; }
.row-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reference { color: #d4ae6a; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.status { color: #c7bdad; font-size: 10px; font-weight: 700; }
.status.open { color: #e4bd78; }
.status.waiting_for_customer { color: #94bb9c; }
.status.resolved { color: #aaa59b; }
.subject { font-size: 13px; line-height: 1.4; }
.row-bottom { color: #99958c; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 18px 7px; color: #99958c; font-size: 12px; }
.load-more { width: 100%; margin-top: 12px; padding: 11px; border: 1px solid #554632; border-radius: 10px; background: transparent; color: #d8be8b; font-size: 11px; font-weight: 700; }
.request-pane { min-width: 0; padding: 32px clamp(24px,5vw,80px) 60px; }
.request-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 75vh; text-align: center; }
.request-empty h2 { margin: 12px 0 4px; }
.request-empty .muted { max-width: 300px; font-size: 13px; }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #826639; border-radius: 18px; color: #dab879; font-size: 28px; }
.request-head { padding-bottom: 22px; border-bottom: 1px solid #302b24; }
.request-head h2 { max-width: 780px; overflow-wrap: anywhere; }
.request-head .muted { font-size: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { border: 1px solid #554632; border-radius: 999px; padding: 6px 10px; color: #d8be8b; font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }
.assignment { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 20px 0 7px; border-bottom: 1px solid #302b24; }
.conversation { display: flex; flex-direction: column; gap: 13px; padding: 25px 0 8px; }
.message { max-width: min(86%,780px); padding: 16px 18px; border: 1px solid #3a352d; border-radius: 16px; background: #1b1a19; }
.message.from-support { align-self: flex-end; border-color: #6a5231; background: #282116; }
.message-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 9px; font-size: 11px; }
.message-head time { color: #99958c; }
.message-body { margin-bottom: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; }
.composer { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding-top: 27px; }
.textarea { display: block; min-height: 125px; padding: 14px; resize: vertical; line-height: 1.6; }
.primary { border: 0; border-radius: 11px; padding: 12px 20px; background: linear-gradient(145deg,#ebc985,#bf9555); color: #1d170d; font-size: 12px; font-weight: 800; }
.primary:hover { filter: brightness(1.08); }
.primary.is-loading:disabled { display: inline-flex; align-items: center; justify-content: center; gap: 10px; opacity: 1; cursor: progress; }
.primary.is-loading::after { content: ''; width: 11px; height: 11px; border: 2px solid #1d170d55; border-top-color: #1d170d; border-radius: 50%; animation: support-spin .75s linear infinite; }
.full { width: 100%; }
.login-wrap { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.login-card { width: min(100%,400px); padding: 36px; border: 1px solid #51422d; border-radius: 22px; background: #191817; box-shadow: 0 32px 80px #0006; }
.login-wrap--leaving { position: fixed; inset: 0; z-index: 2; min-height: 0; background: #0d0d0e; pointer-events: none; animation: support-overlay-away 360ms ease-in-out both; }
.login-wrap--leaving .login-card { animation: support-login-away 220ms ease-in both; }
.shell--enter .topbar { animation: support-blur-fade 400ms cubic-bezier(.22,1,.36,1) both; }
.shell--enter .queue { animation: support-blur-fade 400ms 55ms cubic-bezier(.22,1,.36,1) both; }
.shell--enter .request-pane { animation: support-blur-fade 400ms 110ms cubic-bezier(.22,1,.36,1) both; }
@keyframes support-spin { to { transform: rotate(360deg); } }
@keyframes support-overlay-away { to { opacity: 0; } }
@keyframes support-login-away { to { opacity: 0; filter: blur(4px); transform: translateY(-6px) scale(.99); } }
/* Magic UI Blur Fade's small offset and soft blur, adapted for this vanilla-JS page. */
@keyframes support-blur-fade { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
.login-card .brand { margin-bottom: 38px; }
.login-card h1 { margin-bottom: 10px; }
.login-card .muted { margin-bottom: 28px; font-size: 13px; }
.error, .boot-error { color: #f0a69d; font-size: 12px; line-height: 1.5; }
.boot-error { padding: 40px; }
@media (prefers-reduced-motion: reduce) { .primary.is-loading::after, .login-wrap--leaving .login-card, .shell--enter .topbar, .shell--enter .queue, .shell--enter .request-pane { animation: none; } }
@media (max-width: 880px) { .desk { grid-template-columns: 1fr; } .queue { border-right: 0; border-bottom: 1px solid #292620; padding: 22px; } .queue-rows { max-height: 330px; } .request-pane { padding: 28px 22px 50px; } .request-empty { height: 300px; } }
@media (max-width: 560px) { .topbar { height: 60px; padding: 0 20px; } .identity { gap: 10px; } .identity .muted { display: none; } .assignment { grid-template-columns: 1fr 1fr; } .assignment .field:last-child { grid-column: 1 / -1; } .message { max-width: 96%; } .login-card { padding: 26px; } }
