[hidden]{display:none!important}
body{background:#cfe8f7;color:#2b190f}
header,footer{background:#2b190f;color:#f5c451}
header a,footer a,header .brand,footer .brand{color:#f5c451}
main{color:#2b190f}.page-intro,#public-help{color:#2b190f}
.page-intro .eyebrow,.support-card .eyebrow{color:#d6a83d}
.page-intro h1,.page-intro .lead,#public-help h2,#public-help p,#public-help li,#public-help a{color:#2b190f}
.support-message{padding:.8rem 1rem;border-radius:12px;background:#2b190f;color:#f5c451;border:1px solid #6f4c21}
.support-message.error{background:#6a1e1e;color:#fff}
.support-card{background:#2b190f;color:#f5c451;border:1px solid #6f4c21;border-radius:18px;padding:1.25rem;box-shadow:0 10px 24px rgba(43,25,15,.18);min-width:0}
.support-card h2,.support-card h3,.support-card strong,.support-card p,.support-card label{color:#f5c451}
.support-card-head,.conversation-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}
.support-card-head h2,.conversation-head h2{margin:.1rem 0}
.support-layout{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.65fr);gap:1.5rem;padding-bottom:2rem;align-items:start}
.staff-workspace{display:grid;grid-template-columns:minmax(220px,.62fr) minmax(320px,.95fr) minmax(0,1.65fr);gap:1.25rem;padding-bottom:2rem;align-items:start}
.support-sidebar,.staff-search,.staff-inbox{position:sticky;top:1rem}
.staff-search h2{margin:.1rem 0 .7rem}
.staff-search .search-actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:1rem}
.staff-search .search-actions .button{width:100%;margin:0}
.ticket-list{display:grid;gap:.55rem;margin-top:1rem;max-height:68vh;overflow:auto}
.ticket-row{width:100%;text-align:left;border:1px solid #6f4c21;background:#3a2315;color:#f5c451;border-radius:10px;padding:.85rem;cursor:pointer}
.ticket-row:hover,.ticket-row:focus,.ticket-row.active{border-color:#f5c451;background:#462a18}
.ticket-row strong{display:block;color:#f5c451}.ticket-row .ticket-meta{margin:.3rem 0 0;color:#e3bd67}
.ticket-meta{font-size:.9rem;color:#e3bd67}
.ticket-messages{display:grid;gap:1rem;margin:1.25rem 0;max-height:52vh;overflow:auto;padding-right:.25rem}
.ticket-message{border-radius:12px;padding:1rem;background:#3a2315;color:#f5c451;border:1px solid #5b3b20}
.ticket-message.staff{border-left:4px solid #f5c451}
.ticket-message.internal{border:1px dashed #f5c451;background:#493413}
.ticket-message-head{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.55rem;font-size:.9rem}
.ticket-message-head strong,.ticket-message-head span,.ticket-message p{color:#f5c451}
.ticket-message p{white-space:pre-wrap;margin:0}
.support-card label{display:block;margin:.75rem 0 .3rem}
.support-card input,.support-card select,.support-card textarea{width:100%;box-sizing:border-box}
.support-card .button,.support-card button{border-radius:10px;background:#6b5645;color:#f5c451;border:1px solid #b98c3a}
.support-card .button.primary,.support-card button.button.primary,.support-card button[type="submit"]{background:#e0b04d;color:#1d130b;border:1px solid #e0b04d}
.support-card .button:hover,.support-card button:hover{filter:brightness(1.08)}
.staff-inbox .support-card-head{display:block}
.staff-inbox .support-card-head .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;margin:.75rem 0 0}
.staff-inbox .support-card-head .actions .button{width:100%;margin:0}
#staff-new-ticket{grid-column:1}
#staff-sort{grid-column:2}
#refresh-staff{grid-column:3}
.staff-sort{width:100%;margin:0;height:100%;min-height:50px;border-radius:10px;background:#6b5645;color:#f5c451;border:1px solid #b98c3a;padding:0 .65rem;font:inherit;text-align:center}
.queue-tabs{display:flex;gap:.4rem;margin:.4rem 0 0}
.queue-tab{flex:1;padding:.55rem .6rem}
.queue-tab.active{background:#e0b04d!important;color:#1d130b!important}
.composer{border-top:1px solid #6f4c21;padding-top:1rem}
.composer-mode{display:flex;gap:1rem;margin-bottom:.5rem}
.composer-mode label{display:flex;gap:.4rem;align-items:center;margin:0}
.composer-mode input{width:auto}
.send-options{display:grid;grid-template-columns:1.1fr 1.25fr 1fr auto;gap:.7rem;align-items:end;margin-top:.85rem}
.send-options label{margin:0}.send-options button{height:42px;white-space:nowrap}
@media(max-width:1100px){.staff-workspace{grid-template-columns:minmax(220px,.7fr) minmax(300px,1fr);}.staff-conversation{grid-column:1 / -1}.staff-search,.staff-inbox{position:static}}
@media(max-width:900px){.support-layout,.staff-workspace{grid-template-columns:1fr}.support-sidebar,.staff-search,.staff-inbox{position:static}.ticket-list{max-height:none}.send-options{grid-template-columns:1fr 1fr}.send-options button{width:100%}}
@media(max-width:600px){.send-options{grid-template-columns:1fr}.support-card-head,.conversation-head{flex-direction:column}}

/* Signed-in identity card */
.support-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem}
.support-title-row h1{margin-bottom:0}
.account-id-card{display:flex;align-items:center;gap:1rem;padding:1rem 1.15rem;min-width:min(420px,42vw);margin-bottom:.15rem}
.account-id-avatar{width:72px;height:72px;border-radius:50%;overflow:hidden;flex:0 0 72px;display:grid;place-items:center;background:#e0b04d;color:#1d130b;border:2px solid #f5c451;font-weight:800;font-size:1.25rem}
.account-id-photo{width:100%;height:100%;object-fit:cover;object-position:center}
.account-id-initials{color:#1d130b}
.account-id-copy{min-width:0}
.account-id-copy .eyebrow{margin:0 0 .2rem}
.account-id-name{font-size:1.25rem;font-weight:800;margin:.1rem 0;color:#f5c451!important;overflow-wrap:anywhere}
.account-id-login{margin:.15rem 0 0;font-size:.9rem;color:#e3bd67!important}
@media(max-width:900px){
  .support-title-row{align-items:flex-start;flex-direction:column;gap:1rem}
  .account-id-card{min-width:0;width:100%;box-sizing:border-box;margin-bottom:0}
}

.thread-actions{display:flex;gap:.5rem;align-items:center}
.print-ticket{display:none;background:#fff;color:#111;font-family:Arial,sans-serif}
.print-ticket-head{display:flex;justify-content:space-between;gap:2rem;align-items:flex-start;border-bottom:2px solid #2b190f;padding-bottom:1rem;margin-bottom:1rem}
.print-ticket-head h1{margin:.2rem 0;font-size:1.7rem;color:#111}
.print-ticket-head p{margin:.15rem 0;color:#333}
.print-brand{font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.print-ticket-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem 1.5rem;margin:0 0 1.5rem}
.print-ticket-meta div{display:grid;grid-template-columns:95px 1fr;gap:.5rem;border-bottom:1px solid #ddd;padding:.25rem 0}
.print-ticket-meta dt{font-weight:700}
.print-ticket-meta dd{margin:0}
.print-message{padding:.8rem 0;border-bottom:1px solid #ddd;break-inside:avoid}
.print-message.internal{border-left:4px solid #777;padding-left:.75rem;background:#f3f3f3}
.print-message-head{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.35rem}
.print-message p{white-space:pre-wrap;margin:.2rem 0 0}
.print-ticket-footer{margin-top:2rem;padding-top:.75rem;border-top:1px solid #aaa;font-size:.85rem;color:#555}
@media print{
  @page{margin:.55in}
  body.printing-ticket>*{display:none!important}
  body.printing-ticket>#print-ticket{display:block!important}
  body.printing-ticket{background:#fff!important}
  #print-ticket{font-size:10.5pt}
}

.support-dialog{width:min(560px,calc(100vw - 2rem));box-sizing:border-box;border:1px solid #6f4c21;border-radius:18px;background:#2b190f;color:#f5c451;padding:1.25rem;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.support-dialog::backdrop{background:rgba(0,0,0,.55)}
.support-dialog h2,.support-dialog p,.support-dialog label{color:#f5c451}
.support-dialog label{display:block;margin:.75rem 0 .3rem}
.support-dialog input,.support-dialog textarea,.support-dialog select{width:100%;box-sizing:border-box}
.support-dialog .actions{display:flex;gap:.5rem;margin-top:1rem}

.staff-record-button{white-space:normal}
.staff-record-warning{margin:.8rem 0 0;padding:.75rem;border:1px solid #e0b04d;border-radius:10px;background:#493413;color:#f5c451!important}
.staff-record-warning strong{color:#f5c451}
@media(max-width:700px){.thread-actions{flex-wrap:wrap}}

#staff-thread-panel .thread-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:.5rem;
  width:172px;
  flex:0 0 172px;
}
#staff-thread-panel .thread-actions .button{
  width:100%;
  min-height:50px;
  margin:0;
  text-align:center;
  line-height:1.15;
  white-space:normal;
}

.report-form{display:grid;grid-template-columns:minmax(220px,1.35fr) minmax(125px,.8fr) minmax(125px,.8fr);gap:.75rem;align-items:end;margin:1rem 0 1.25rem;padding-bottom:1rem;border-bottom:1px solid #6f4c21}
.report-form label{margin:0}
.report-actions{display:grid;grid-template-columns:1fr;gap:.5rem;width:150px;flex:0 0 150px;align-self:flex-start;margin-top:-.35rem}
.report-actions .button{width:100%;min-height:50px;margin:0;text-align:center;white-space:normal}
.report-head{align-items:flex-start}
.report-form button{height:42px;white-space:nowrap;width:100%;min-width:0}
.report-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-bottom:1rem}
.report-summary article{border:1px solid #6f4c21;border-radius:12px;padding:1rem;background:#3a2315}
.report-summary span{display:block;color:#e3bd67;font-size:.85rem}
.report-summary strong{display:block;margin-top:.25rem;font-size:1.25rem;color:#f5c451}
.report-breakdowns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-bottom:1.25rem}
.report-breakdowns section{border:1px solid #6f4c21;border-radius:12px;padding:.9rem;background:#3a2315}
.report-breakdowns h3{margin:.1rem 0 .65rem}
.report-breakdown-row{display:flex;justify-content:space-between;gap:1rem;padding:.28rem 0;border-bottom:1px solid #5b3b20}
.report-breakdown-row:last-child{border-bottom:0}
.report-breakdown-row span,.report-breakdown-row strong{color:#f5c451}
.report-table-wrap{overflow:auto;border:1px solid #6f4c21;border-radius:12px}
.report-table{width:100%;border-collapse:collapse;min-width:900px;background:#3a2315}
.report-table th,.report-table td{padding:.65rem .7rem;text-align:left;border-bottom:1px solid #5b3b20;color:#f5c451;vertical-align:top}
.report-table th{background:#493413;color:#f5c451;position:sticky;top:0}
.report-table tbody tr{cursor:pointer}
.report-table tbody tr:hover,.report-table tbody tr:focus{background:#462a18;outline:none}
@media(max-width:700px){.report-form,.report-summary,.report-breakdowns{grid-template-columns:1fr}}

.staff-reports-button{width:100%;margin:.5rem 0 0;min-height:50px}

.report-results{margin-top:1rem;padding-top:1rem;border-top:2px solid #b98c3a}
.report-results-title{margin:.1rem 0 1rem;color:#f5c451}

.report-type-label{min-width:0}
#report-type{width:100%}
@media(max-width:1000px){.report-form{grid-template-columns:1fr 1fr}.report-type-label{grid-column:1 / -1}.report-actions{width:150px;flex-basis:150px}}

.print-report{display:none;background:#fff;color:#111;font-family:Arial,sans-serif}
.print-report-head{display:flex;justify-content:space-between;gap:2rem;align-items:flex-start;border-bottom:2px solid #2b190f;padding-bottom:1rem;margin-bottom:1rem}
.print-report-head h1{margin:.2rem 0;font-size:1.7rem;color:#111}
.print-report-head p{margin:.15rem 0;color:#333}
.print-report-summary{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:0 0 1rem}
.print-report-summary>div{border:1px solid #bbb;padding:.65rem}
.print-report-summary span{display:block;font-size:.85rem;color:#444}
.print-report-summary strong{display:block;margin-top:.2rem;font-size:1.15rem}
.print-report-breakdowns{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}
.print-report-breakdowns section{border:1px solid #bbb;padding:.65rem;break-inside:avoid}
.print-report-breakdowns h2{margin:.1rem 0 .5rem;font-size:1rem}
.print-report-breakdown-row{display:flex;justify-content:space-between;gap:1rem;padding:.18rem 0;border-bottom:1px solid #ddd}
.print-report-breakdown-row:last-child{border-bottom:0}
.print-report-table{width:100%;border-collapse:collapse;font-size:9pt}
.print-report-table th,.print-report-table td{border:1px solid #bbb;padding:.35rem;text-align:left;vertical-align:top}
.print-report-table th{background:#eee}
@media print{
  body.printing-report>*{display:none!important}
  body.printing-report>#print-report{display:block!important}
  body.printing-report{background:#fff!important}
  #print-report{font-size:10pt}
  #print-report .print-report-table{page-break-inside:auto}
  #print-report .print-report-table tr{break-inside:avoid}
}

.ticket-screenshot{display:block;max-width:280px;max-height:210px;object-fit:contain;border-radius:8px;margin:8px 0}
.screenshot-picker{display:block;margin:12px 0}
