.customer-tickets {display:flex;flex-direction:column;gap:22px;min-width:0;color:var(--dash-text)}
.customer-tickets button,.tickets-guest button {cursor:pointer}
.customer-tickets button:disabled,.tickets-guest button:disabled {cursor:default}
.customer-tickets button:focus-visible,.customer-tickets summary:focus-visible,.tickets-guest button:focus-visible {outline:2px solid var(--dash-accent);outline-offset:4px}
.tickets-eyebrow {display:block;color:var(--dash-accent);font-size:12px;line-height:1.9;margin-bottom:5px}
.tickets-intro {display:flex;align-items:center;justify-content:space-between;gap:24px;background:radial-gradient(ellipse at 100% 0%,#15bbab0e,transparent 65%),var(--dash-card)}
.tickets-intro-copy {display:flex;align-items:flex-start;gap:17px;min-width:0}
.tickets-feature-icon,.tickets-guest-icon {display:grid;place-items:center;flex-shrink:0;width:54px;height:54px;border:1px solid var(--dash-border);border-radius:18px;background:linear-gradient(145deg,#32c7b814,#258da115);color:var(--dash-accent)}
.tickets-intro h2,.tickets-form-heading h2 {font-size:22px;line-height:1.7;font-weight:600;margin:0}
.tickets-intro p,.tickets-form-heading p {font-size:14px;line-height:2.1;color:var(--dash-muted);max-width:640px;margin:8px 0 0}
.tickets-intro>.dash-primary {flex-shrink:0}
.tickets-list-heading,.tickets-form-heading {display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}
.tickets-list-heading h2,.ticket-conversation>h2 {display:flex;align-items:center;gap:10px;margin:0;font-size:18px;font-weight:600;line-height:1.8}
.tickets-list-heading h2>svg,.ticket-conversation>h2>svg {color:var(--dash-accent)}
.tickets-list-heading>div>span {display:block;color:var(--dash-muted);font-size:12px;margin-top:7px}
.tickets-filters {display:grid;grid-template-columns:minmax(190px,1.35fr) 1fr 1.2fr .9fr;align-items:end;gap:12px;padding-bottom:22px;border-bottom:1px solid var(--dash-border)}
.tickets-filters>label {display:flex;flex-direction:column;gap:8px;min-width:0}
.tickets-filters>label>span {font-size:12px;color:var(--dash-muted)}
.tickets-filters select,.ticket-form select,.ticket-form input:not([type=radio]),.ticket-form textarea {width:100%;min-width:0;border:1px solid var(--dash-border);border-radius:11px;padding:12px 14px;background:var(--dash-input);color:var(--dash-text);font:inherit;font-size:14px;line-height:1.7;outline-offset:3px}
.tickets-filters select,.ticket-form select {height:48px;padding-inline-end:25px}
.tickets-filters select:focus-visible,.ticket-form input:focus-visible,.ticket-form select:focus-visible,.ticket-form textarea:focus-visible {outline:2px solid var(--dash-accent)}
.tickets-filters .ticket-search {height:48px;flex-direction:row;align-items:center;gap:9px;border:1px solid var(--dash-border);border-radius:11px;padding:0 12px;background:var(--dash-input);color:var(--dash-muted)}
.ticket-search:focus-within {outline:2px solid var(--dash-accent);outline-offset:3px}
.ticket-search input {width:100%;min-width:0;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;font:inherit;font-size:13px;color:var(--dash-text);outline:0!important}
.ticket-search svg {flex-shrink:0}
.ticket-records {min-width:0}
.ticket-record {display:flex;align-items:center;gap:14px;width:100%;padding:23px 2px;text-align:start;border:0;border-bottom:1px solid var(--dash-border);background:transparent;color:var(--dash-text);transition:background .15s}
.ticket-record:hover {background:color-mix(in srgb,var(--dash-accent) 4%,transparent)}
.ticket-record-icon {display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border:1px solid var(--dash-border);border-radius:13px;color:var(--dash-accent);background:#20b4a708}
.ticket-record-copy {flex:1;min-width:0}
.ticket-record-title {display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ticket-record-title>strong {font-size:15px;line-height:1.9;font-weight:550;overflow-wrap:anywhere}
.ticket-record-meta {display:flex;align-items:center;flex-wrap:wrap;gap:13px;color:var(--dash-muted);font-size:12px;line-height:1.9;margin-top:10px}
.ticket-record-meta>span:first-child {direction:ltr;unicode-bidi:isolate}
.ticket-record-date {display:flex;flex-direction:column;gap:7px;font-size:11px;color:var(--dash-muted);text-align:end;flex-shrink:0}
.ticket-record-date time {font-size:12px;line-height:1.9}
.ticket-record>svg {flex-shrink:0;color:var(--dash-muted)}
.ticket-status {display:inline-flex;align-items:center;gap:7px;white-space:nowrap;padding:5px 9px;border-radius:8px;font-size:11px;font-weight:400;line-height:1.7;background:#8497ac0f;color:#acbecf;border:1px solid #8497ac20}
.ticket-status>i {width:5px;height:5px;flex-shrink:0;border-radius:50%;background:currentColor}
.ticket-status-open {color:#9dc0f3;background:#488be713;border-color:#488be723}
.ticket-status-in_progress {color:#e9c684;background:#d79c2610;border-color:#d79c2625}
.ticket-status-waiting_customer {color:#dab4f8;background:#ac67df10;border-color:#ac67df28}
.ticket-status-resolved {color:#83d9b8;background:#19b77f0e;border-color:#19b77f26}
.ticket-status-closed {color:#9baab5;background:#7489980c;border-color:#74899825}
.ticket-priority {color:var(--dash-muted)}
.ticket-priority-high {color:#e0bb7a}
.ticket-priority-urgent {color:#f3a5a4}
.tickets-pagination {display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:22px;font-size:12px;color:var(--dash-muted)}
.tickets-pagination>div {display:flex;gap:9px}
.tickets-pagination .dash-secondary {min-height:36px;padding:6px 12px;font-size:12px}
.tickets-empty {display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:52px 20px 35px}
.tickets-empty>span {display:grid;place-items:center;width:70px;height:70px;border-radius:23px;border:1px solid var(--dash-border);color:var(--dash-accent);background:#1eb8b008}
.tickets-empty h3 {font-size:17px;margin:4px 0 0}
.tickets-empty p {font-size:14px;line-height:2.1;max-width:410px;color:var(--dash-muted);margin:0 0 8px}
.ticket-form {display:flex;flex-direction:column;gap:22px}
.ticket-form>label {display:flex;flex-direction:column;gap:9px;min-width:0;color:var(--dash-text);font-size:14px}
.ticket-form>label>span {display:flex;justify-content:space-between;gap:10px}
.ticket-form>label small {font-size:12px;color:var(--dash-muted);font-weight:400;line-height:1.9}
.ticket-form textarea {resize:vertical;min-height:145px;line-height:2}
.ticket-form ::placeholder {color:var(--dash-muted);opacity:.85}
.ticket-form :disabled {opacity:.65}
.ticket-form .ticket-character-count {text-align:end}
.ticket-priority-options {border:0;padding:0;margin:0;min-width:0}
.ticket-priority-options legend {font-size:14px;color:var(--dash-text);padding:0;margin-bottom:12px}
.ticket-priority-options>div {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ticket-priority-choice {display:flex;align-items:center;gap:11px;padding:16px 12px;border:1px solid var(--dash-border);border-radius:12px;background:var(--dash-input);cursor:pointer;transition:border-color .15s,background .15s}
.ticket-priority-choice.is-selected {background:#1dc1af0b;border-color:#53c5b95e}
.ticket-priority-choice input {width:16px;height:16px;flex-shrink:0;accent-color:#21ab9c;margin:0}
.ticket-priority-choice>span {display:flex;flex-direction:column;gap:7px;min-width:0}
.ticket-priority-choice strong {font-size:14px;font-weight:500}
.ticket-priority-choice small {font-size:11px;color:var(--dash-muted);line-height:1.8}
.priority-choice-high.is-selected {background:#d5a24b0c;border-color:#d5a24b65}
.priority-choice-high input {accent-color:#c39538}
.priority-choice-urgent.is-selected {background:#d568680b;border-color:#d568685c}
.priority-choice-urgent input {accent-color:#bf6767}
.ticket-privacy,.ticket-reopen-hint {display:flex;align-items:flex-start;gap:9px;border:1px solid var(--dash-border);border-radius:11px;padding:12px 14px;background:#809ca006;font-size:12px;line-height:2;color:var(--dash-muted);margin:0}
.ticket-privacy svg,.ticket-reopen-hint svg {flex-shrink:0;margin-top:3px;color:var(--dash-accent)}
.ticket-form-actions {display:flex;align-items:center;justify-content:space-between;gap:22px;border-top:1px solid var(--dash-border);padding-top:20px}
.ticket-form-actions>span,.ticket-form-actions>output {display:flex;align-items:flex-start;gap:8px;font-size:12px;color:var(--dash-muted);line-height:2;max-width:65%}
.ticket-form-actions>span>svg,.ticket-form-actions>output>svg {flex-shrink:0;margin-top:4px}
.ticket-form-actions>button {flex-shrink:0}
.ticket-error {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid #cf717136;border-radius:12px;background:#bd47470c;color:#e6a9a9;font-size:13px;line-height:2;margin:14px 0}
.ticket-error button {display:inline-flex;align-items:center;gap:7px;padding:5px 0;background:none;border:0;color:inherit;white-space:nowrap;font-size:12px}
.ticket-success {display:flex;align-items:center;gap:11px;padding:15px 18px;border:1px solid #28be9d2b;border-radius:13px;color:var(--dash-accent);background:#12b4940c;font-size:13px;line-height:2}
.ticket-success>svg {flex-shrink:0}
.ticket-success>button {display:grid;place-items:center;margin-inline-start:auto;width:28px;height:28px;flex-shrink:0;background:none;border:0;color:inherit}
.tickets-conversation-toolbar {display:flex;justify-content:space-between;align-items:center;gap:12px}
.ticket-detail-heading>div {display:flex;align-items:center;gap:10px 15px;flex-wrap:wrap}
.ticket-detail-heading .tickets-eyebrow {width:100%;margin:0}
.ticket-detail-heading h2 {font-size:22px;line-height:1.9;flex:1;min-width:0;overflow-wrap:anywhere;font-weight:600;margin:0}
.ticket-detail-heading dl {display:grid;grid-template-columns:1.3fr .6fr 1fr 1fr;gap:20px;border-top:1px solid var(--dash-border);padding-top:22px;margin:22px 0 0}
.ticket-detail-heading dl>div {min-width:0}
.ticket-detail-heading dt {color:var(--dash-muted);font-size:11px;margin-bottom:9px}
.ticket-detail-heading dd {font-size:13px;margin:0;line-height:1.9}
.ticket-conversation>h2>span {margin-inline-start:auto;font-size:12px;font-weight:400;color:var(--dash-muted)}
.ticket-messages {display:flex;flex-direction:column;gap:20px;padding:26px 0}
.ticket-message {width:93%;max-width:900px;border:1px solid var(--dash-border);border-radius:17px 5px 17px 17px;padding:20px;background:var(--dash-input)}
.ticket-message-admin {align-self:flex-end;border-radius:5px 17px 17px 17px;border-color:#2fc6af26;background:linear-gradient(125deg,#13bca008,#2f92ae08)}
.ticket-message header {display:flex;align-items:center;gap:10px}
.ticket-message-avatar {display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border:1px solid var(--dash-border);border-radius:11px;color:var(--dash-accent);background:#16b6a509}
.ticket-message header>div {display:flex;flex-direction:column;gap:5px;min-width:0}
.ticket-message header strong {font-size:13px;line-height:1.7;font-weight:500;overflow-wrap:anywhere}
.ticket-message header>div>span {font-size:10px;color:var(--dash-muted)}
.ticket-message time {font-size:11px;line-height:1.9;margin-inline-start:auto;color:var(--dash-muted);flex-shrink:0}
.ticket-message p {white-space:pre-wrap;overflow-wrap:anywhere;line-height:2.2;font-size:14px;color:var(--dash-text);margin:16px 0 0}
.ticket-reply {border-top:1px solid var(--dash-border);padding-top:24px}
.ticket-reply .ticket-form-actions {border-top:0;padding-top:0}
.ticket-closed {display:flex;align-items:flex-start;gap:14px;border-top:1px solid var(--dash-border);padding-top:24px;color:var(--dash-muted)}
.ticket-closed>svg {flex-shrink:0;margin-top:4px}
.ticket-closed>div {flex:1;min-width:0}
.ticket-closed strong {font-size:14px;color:var(--dash-text);font-weight:500}
.ticket-closed p {font-size:12px;line-height:2.1;margin:8px 0 0}
.ticket-closed button {flex-shrink:0}
.ticket-history {padding-block:20px}
.ticket-history summary {display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;color:var(--dash-muted)}
.ticket-history summary::-webkit-details-marker {display:none}
.ticket-history summary strong {color:var(--dash-text);font-size:14px;font-weight:500}
.ticket-history summary>span {font-size:12px;margin-inline-start:auto}
.ticket-history[open] summary>svg:last-child {transform:rotate(-90deg)}
.ticket-history ol {list-style:none;padding:24px 0 0;margin:0}
.ticket-history li {display:flex;gap:14px;position:relative;padding-bottom:23px}
.ticket-history li:last-child {padding-bottom:0}
.ticket-history li:not(:last-child)::after {content:'';position:absolute;right:13px;top:30px;bottom:3px;border-right:1px solid var(--dash-border)}
.ticket-history li>span {display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border-radius:50%;border:1px solid var(--dash-border);color:var(--dash-accent);background:var(--dash-card)}
.ticket-history li p {font-size:13px;line-height:2;margin:0 0 6px;color:var(--dash-text)}
.ticket-history time {font-size:11px;color:var(--dash-muted)}
.tickets-guest {display:flex;flex-direction:column;align-items:center;text-align:center;padding:52px 30px;gap:15px}
.tickets-guest-icon {width:74px;height:74px;border-radius:25px;margin-bottom:5px}
.tickets-guest h2 {font-size:24px;line-height:1.8;font-weight:600;margin:0}
.tickets-guest .tickets-eyebrow {margin:0}
.tickets-guest p {max-width:540px;font-size:15px;line-height:2.2;color:var(--dash-muted);margin:0 0 7px}
.tickets-guest>small {display:flex;align-items:center;gap:7px;color:var(--dash-muted);font-size:12px;line-height:2;margin-top:4px}
.ticket-loading {position:relative;overflow:hidden;min-height:320px;display:flex;flex-direction:column;gap:22px}
.tickets-list-panel>.ticket-loading {border:0;box-shadow:none;padding-inline:0;border-radius:0;background:none;margin-top:8px}
.ticket-skeleton-heading,.ticket-skeleton-row {border-radius:12px;background:color-mix(in srgb,var(--dash-muted) 9%,transparent)}
.ticket-skeleton-heading {width:38%;height:22px;margin-top:5px}
.ticket-skeleton-row {height:55px;width:100%}
.ticket-skeleton-row:nth-child(4) {width:85%}
.ticket-loading-line {position:absolute;top:0;inset-inline:0;height:2px;overflow:hidden}
.ticket-loading-line::before {content:'';display:block;width:35%;height:100%;background:linear-gradient(90deg,transparent,var(--dash-accent),transparent);animation:ticket-loading-drift 2s ease-in-out infinite}
.ticket-loading-caption {display:flex;align-items:center;gap:8px;font-size:12px;color:var(--dash-muted)}
.ticket-loading-caption svg,.ticket-spin {animation:ticket-spinner 1.3s linear infinite}
@keyframes ticket-spinner {to{transform:rotate(360deg)}}
@keyframes ticket-loading-drift {from{transform:translateX(110%)}to{transform:translateX(-310%)}}
html[data-theme=light] .ticket-status-open {color:#3472b3;background:#eaf2fe;border-color:#d9e6f5}
html[data-theme=light] .ticket-status-in_progress {color:#987327;background:#fff6df;border-color:#f1e5bf}
html[data-theme=light] .ticket-status-waiting_customer {color:#8655ad;background:#f5edfd;border-color:#e8dcf2}
html[data-theme=light] .ticket-status-resolved {color:#237b60;background:#eaf7f0;border-color:#d5eadd}
html[data-theme=light] .ticket-status-closed {color:#617785;background:#f0f4f6;border-color:#dce6ec}
html[data-theme=light] .ticket-priority-high {color:#987329}
html[data-theme=light] .ticket-priority-urgent {color:#b65756}
html[data-theme=light] .ticket-error {color:#b34e4e;background:#fff5f1}
html[data-theme=light] .ticket-message-admin {background:linear-gradient(125deg,#f0faf6,#f2f9fb);border-color:#d4e9e4}
@media (max-width:1200px) {.tickets-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.tickets-filters .ticket-search{grid-column:1/-1}.ticket-record-date{display:none}.ticket-priority-options>div{gap:8px}.ticket-priority-choice{padding:13px 10px}.ticket-detail-heading dl{grid-template-columns:1fr 1fr}}
@media (max-width:680px) {
  .customer-tickets{gap:16px}.customer-tickets .dash-card{padding:20px 16px}.tickets-intro{align-items:stretch;flex-direction:column;gap:18px}.tickets-intro-copy{gap:12px}.tickets-feature-icon{width:43px;height:43px;border-radius:15px}.tickets-intro h2,.tickets-form-heading h2{font-size:19px}.tickets-intro p{font-size:13px}.tickets-intro>.dash-primary{align-self:stretch}.tickets-list-heading{gap:10px}.tickets-list-heading h2{font-size:16px}.tickets-list-heading>.dash-secondary{padding:9px;min-width:39px}.tickets-list-heading>.dash-secondary>span{display:none}.tickets-filters{grid-template-columns:1fr 1fr;gap:12px 9px}.tickets-filters>label:nth-child(3){grid-column:1/-1;grid-row:3}.tickets-filters>label:nth-child(4){grid-column:2;grid-row:2}.tickets-filters select{font-size:12px;padding-inline:9px}.ticket-record{gap:10px;padding:20px 0}.ticket-record-icon{display:none}.ticket-record-title>strong{font-size:14px;width:100%}.ticket-record-title{gap:7px}.ticket-record-meta{font-size:11px;gap:8px}.ticket-status{font-size:10px}.tickets-pagination{font-size:11px}.tickets-pagination .dash-secondary{font-size:11px;padding:6px 9px}.tickets-form-heading{align-items:flex-start}.tickets-form-heading>.dash-secondary{padding:8px 10px;font-size:12px;min-height:38px}.tickets-form-heading p{font-size:12px}.ticket-priority-options>div{grid-template-columns:1fr}.ticket-priority-choice{padding:13px}.ticket-priority-choice>span{flex-direction:row;align-items:center;gap:15px}.ticket-priority-choice small{font-size:11px}.ticket-form-actions{align-items:stretch;flex-direction:column;gap:14px}.ticket-form-actions>span,.ticket-form-actions>output{max-width:none}.ticket-error{align-items:flex-start;flex-direction:column;gap:5px}.ticket-detail-heading h2{font-size:19px;flex-basis:100%}.ticket-detail-heading dl{gap:19px 12px}.ticket-detail-heading dd{font-size:12px}.tickets-conversation-toolbar .dash-secondary{font-size:12px;padding:8px 12px}.ticket-message{width:100%;padding:16px}.ticket-message header{flex-wrap:wrap}.ticket-message time{font-size:10px;flex-basis:100%;margin-inline-start:44px}.ticket-message p{font-size:13px}.ticket-conversation>h2{font-size:16px}.ticket-closed{flex-wrap:wrap}.ticket-closed>button{margin-inline-start:34px}.ticket-history summary{gap:7px}.ticket-history summary strong{font-size:13px}.ticket-history summary>span{font-size:10px}.ticket-history li p{font-size:12px}.tickets-guest{padding:35px 20px}.tickets-guest h2{font-size:21px}.tickets-guest p{font-size:13px}.tickets-guest>small{font-size:11px;align-items:flex-start}.tickets-guest>small>svg{flex-shrink:0;margin-top:3px}
}
@media (prefers-reduced-motion:reduce) {.ticket-spin,.ticket-loading-caption svg,.ticket-loading-line::before{animation:none}.ticket-loading-line::before{width:100%}}
