.support-portal{padding-top:48px;padding-bottom:64px;max-width:1320px}.portal-heading,.portal-account,.portal-toolbar,.portal-list-heading,.portal-thread-heading,.portal-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.portal-heading h1{font-size:clamp(30px,4vw,48px);line-height:1.15;margin:8px 0 12px}.portal-heading p{color:var(--muted)}.portal-label{font-size:12px;letter-spacing:.12em;font-weight:600}.portal-label span{display:inline-block;letter-spacing:0;border:1px solid var(--line);border-radius:999px;padding:4px 9px;margin-left:8px;font-weight:400}.portal-status{font-size:14px;line-height:1.6;overflow-wrap:anywhere;min-height:24px;margin:20px 0}.portal-status[data-state=error]{color:#a23535}.portal-status[data-state=success]{border-left:3px solid var(--ink);padding-left:12px}.portal-card{border:1px solid var(--line);border-radius:20px;padding:28px;background:var(--surface);min-width:0}.portal-card h2{font-size:23px;line-height:1.3;letter-spacing:-.035em;margin:0 0 16px}.portal-card p{color:var(--muted);line-height:1.7}.portal-entry{display:grid;grid-template-columns:1.1fr 1fr;gap:24px}.support-portal label{display:block;font-size:14px;font-weight:600;margin:0 0 8px}.support-portal label span{font-weight:400;color:var(--muted)}.support-portal input,.support-portal select,.support-portal textarea{font:inherit;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:12px 14px;width:100%;min-width:0;min-height:48px}.support-portal textarea{resize:vertical;line-height:1.6}.support-portal :is(input,select,textarea):focus-visible{outline:2px solid var(--focus);outline-offset:3px}.support-portal button{font:inherit;cursor:pointer}.support-portal button:disabled{cursor:wait;opacity:.55}.support-portal fieldset{padding:0;border:0;min-width:0}.support-portal .button{min-height:48px;border-radius:10px;text-align:center;justify-content:center;padding:12px 18px;gap:12px}.support-portal .fine-print{font-size:13px;line-height:1.65}.portal-entry form{display:grid;gap:10px;margin:24px 0}.portal-entry form label:not(:first-child){margin-top:8px}.portal-entry form button{margin-top:10px}.portal-guest-intro{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:18px}.portal-guest-mark{font-size:44px;line-height:1}.portal-account{padding:18px 0;border-block:1px solid var(--line);font-size:14px;overflow-wrap:anywhere}.portal-account>div{display:flex;flex-wrap:wrap;gap:18px}.portal-account a,.portal-account button{color:var(--ink);background:none;border:0;padding:0;text-decoration:underline;text-underline-offset:5px}.portal-toolbar{padding:20px 0}.portal-toolbar form{display:flex;gap:10px;flex:1;max-width:780px}.portal-toolbar input{flex:1}.portal-toolbar select{width:auto;max-width:225px}.portal-toolbar-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.portal-icon{display:inline-grid;place-items:center;width:48px;height:48px;min-width:48px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink)}.portal-icon svg{width:22px;height:22px}.portal-workspace{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:20px;align-items:start}.portal-list-panel{padding:18px}.portal-list-heading{margin:0 4px 16px}.portal-list-heading h2{font-size:18px;margin:0}.portal-list-heading span{font-size:13px;color:var(--muted)}.portal-ticket-list{display:flex;flex-direction:column;gap:8px;max-height:680px;overflow-y:auto}.portal-ticket{text-align:left;width:100%;padding:16px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:transparent;transition:background .15s,border-color .15s}.portal-ticket[aria-current=true]{background:var(--soft);border-color:var(--ink)}.portal-ticket strong{display:block;font-size:16px;line-height:1.45;margin:8px 0;overflow-wrap:anywhere}.portal-ticket small{font-size:11px;color:var(--muted)}.portal-ticket-footer{display:flex;align-items:center;gap:8px;justify-content:space-between}.portal-badge{display:inline-block;border:1px solid var(--line);border-radius:999px;padding:4px 9px;font-size:11px;line-height:1.4}.portal-badge[data-status=waiting_for_reply]{background:var(--soft);border-color:var(--ink)}.portal-badge[data-status=resolved],.portal-badge[data-status=expired]{color:var(--muted)}.portal-thread{min-height:430px}.portal-empty{padding:64px 10px;max-width:440px;margin:auto;text-align:center}.portal-thread-heading{align-items:flex-start;padding-bottom:22px;border-bottom:1px solid var(--line)}.portal-thread-heading h2{font-size:25px;margin:8px 0 12px;overflow-wrap:anywhere}.portal-thread-heading p{font-size:12px;margin:4px 0}.portal-ticket-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.portal-ticket-actions select{min-height:40px;font-size:13px;padding:8px;max-width:190px}.portal-ticket-actions .button{font-size:13px;min-height:40px;padding:8px 12px}.portal-messages{display:flex;flex-direction:column;gap:16px;padding:24px 0}.portal-message{padding:18px;border:1px solid var(--line);border-radius:14px;overflow-wrap:anywhere}.portal-message[data-author=operator]{background:var(--soft)}.portal-message[data-author=system]{padding:10px 14px;border-style:dashed;font-size:13px}.portal-message-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:12px;color:var(--muted)}.portal-message-body{white-space:pre-wrap;line-height:1.7;font-size:15px}.portal-reply{border-top:1px solid var(--line);padding-top:24px}.portal-reply .button{margin-top:12px}.portal-deliveries{border-top:1px solid var(--line);font-size:12px;padding:16px 0}.portal-deliveries summary{cursor:pointer}.portal-deliveries li{margin:8px 0}.portal-guest-section{margin-top:56px;border-top:1px solid var(--line);padding-top:40px;display:grid;grid-template-columns:minmax(200px,1fr) minmax(0,1.5fr);gap:48px;scroll-margin-top:100px}.portal-guest-section h2{font-size:28px;margin:0 0 16px}.portal-guest-section>div>p{line-height:1.7;color:var(--muted);margin-top:16px}.portal-guest-section .support-form{padding:0;border:0;background:none}.portal-privacy{border-top:1px solid var(--line);padding-top:24px;margin-top:36px;max-width:900px}.portal-compose{border:1px solid var(--line);border-radius:22px;background:var(--paper);color:var(--ink);padding:28px;max-width:640px;width:calc(100% - 32px);max-height:calc(100dvh - 32px);overflow-y:auto}.portal-compose::backdrop{background:#0008;backdrop-filter:blur(5px)}.portal-compose h2{font-size:25px;margin:0}.portal-dialog-heading{margin-bottom:24px}.portal-compose label{margin-top:18px}.portal-compose label:first-child{margin-top:0}.portal-form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.portal-form-row label:first-child{margin-top:18px}.portal-compose .button[type=submit]{width:100%;margin-top:20px}.support-portal [hidden]{display:none!important}.portal-list-panel>[data-tickets-more]{width:100%;margin-top:16px;font-size:13px}
@media(prefers-color-scheme:dark){.portal-status[data-state=error]{color:#f5aaa4}}
@media(max-width:1000px){.portal-toolbar{align-items:stretch;flex-direction:column;gap:12px}.portal-toolbar form{max-width:none}.portal-toolbar-actions{justify-content:flex-end}.portal-workspace{grid-template-columns:minmax(230px,290px) minmax(0,1fr)}.portal-thread-heading{flex-direction:column}.portal-ticket-actions{justify-content:flex-start}}
@media(max-width:720px){.support-portal{padding-top:28px}.portal-heading{align-items:flex-start;flex-direction:column;gap:18px}.portal-entry,.portal-workspace{grid-template-columns:1fr}.portal-card{padding:20px;border-radius:16px}.portal-account{align-items:flex-start;flex-direction:column;gap:12px}.portal-toolbar form{display:grid;grid-template-columns:1fr auto}.portal-toolbar input{grid-column:1/-1}.portal-toolbar select{max-width:none;width:100%}.portal-ticket-list{max-height:340px}.portal-thread{min-height:260px}.portal-guest-section{grid-template-columns:1fr;gap:20px}.portal-compose{padding:20px}.portal-form-row{grid-template-columns:1fr;gap:0}.portal-message-heading{align-items:flex-start;flex-direction:column;gap:5px}.portal-ticket-actions{width:100%}.portal-ticket-actions select{flex:1;max-width:none}.portal-thread-heading h2{font-size:22px}.portal-toolbar-actions .button{flex:1}.portal-toolbar-actions{width:100%}}
@media(prefers-reduced-motion:reduce){.portal-ticket{transition:none}}
/* Ticket-scoped screenshots use the same measured spacing as conversations. */
.portal-files{margin-block:1.5rem;padding-block:1.25rem;border-top:1px solid var(--line,#ccc);display:grid;gap:.85rem;min-width:0}
.portal-files h3,.portal-files p{margin:0}.portal-file-list{display:flex;gap:.65rem;flex-wrap:wrap}
.portal-file-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem;margin-top:.5rem}
.portal-file-form label{grid-column:1/-1}.portal-file-form input{max-width:100%;min-width:0}
@media(max-width:600px){.portal-file-form{grid-template-columns:minmax(0,1fr)}.portal-file-form button{width:100%}}
