/* DENCO palette: website computed styles and sampled invoice 202615456.pdf.
   Keep brand values here; components use semantic color tokens.
   Cyan uses navy foreground text; small links use the darker brand blue. */
:root {
    color-scheme: light;
    --brand-navy: #013041;
    --brand-cyan: #16bae7;
    --brand-blue: #0379a4;
    --brand-blue-hover: #00658a;
    --brand-ice: #e7f8fc;
    --brand-invoice-blue: #2f759e;
    --brand-invoice-light: #91c2de;
    --ink: #202020;
    --muted: #596e7a;
    --label: #395768;
    --line: #d9e6ed;
    --line-soft: #e8eff3;
    --border-strong: #a9cedf;
    --page-background: #f4f8fb;
    --canvas: var(--page-background);
    --surface-subtle: #f8fbfd;
    --surface-muted: #eef5f9;
    --surface-hover: #f0faff;
    --icon-muted: #718d9d;
    --accent: var(--brand-blue);
    --accent-dark: var(--brand-blue-hover);
    --sidebar: var(--brand-navy);
    --sidebar-text: #d8eef6;
    --sidebar-muted: #a7ccdc;
    --sidebar-border: #2a5b70;
    --sidebar-hover: #084358;
    --sidebar-active: #07536d;
    --sidebar-width: 230px;
    font: 14px "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
*{
    box-sizing:border-box
}
body{
    margin:0;
    color:var(--ink);
    background:var(--canvas);
    line-height:1.5
}
button,input,select,textarea{
    font:inherit
}
a{
    color:var(--accent);
    text-decoration:none
}
button,summary{
    cursor:pointer
}
button{
    color:inherit
}
h1,h2,h3,p{
    margin-top:0
}
h1,h2,h3{
    color:var(--heading);
    font-weight:650
}
h1{
    font-size:30px;
    line-height:1.25;
    letter-spacing:-.7px
}
h2{
    font-size:18px
}
:focus-visible{
    outline:3px solid var(--brand-blue);
    outline-offset:3px
}
.icon{
    flex:0 0 auto;
    vertical-align:middle
}
.muted{
    color:var(--muted)
}
.app-shell{
    display:grid;
    grid-template-columns:var(--sidebar-width) minmax(0,1fr);
    min-height:100dvh
}
.workspace-main{
    min-width:0
}
.sidebar{
    background:var(--sidebar);
    color:var(--sidebar-text);
    position:sticky;
    top:0;
    height:100dvh;
    display:flex;
    flex-direction:column;
    z-index:10
}
.brand{
    display:flex;
    gap:12px;
    align-items:center;
    color:#fff;
    padding:29px 23px
}
.brand-mark{
    width:39px;
    height:39px;
    border-radius:11px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:32px;
    font-weight:700;
    letter-spacing:-4px;
    padding-right:5px;
    background:var(--brand-cyan);
    color:var(--heading);
    line-height:1
}
.brand-mark>span{
    color:var(--heading)
}
.brand strong{
    display:block;
    font-size:18px;
    letter-spacing:1.7px;
    line-height:1.25
}
.brand small{
    display:block;
    font-size:10px;
    color:var(--sidebar-muted);
    margin-top:3px;
    letter-spacing:.25px
}
.sidebar-scroll{
    overflow-y:auto;
    min-height:0;
    flex:1;
    padding:0 13px 16px
}
.workspace-label{
    border:1px solid var(--sidebar-border);
    border-radius:7px;
    padding:9px 10px;
    font-size:12px;
    margin:0 3px 28px;
    display:flex;
    align-items:center;
    gap:9px
}
.workspace-dot{
    width:7px;
    height:7px;
    background:var(--brand-cyan);
    border-radius:50%
}
.nav-heading{
    text-transform:uppercase;
    letter-spacing:1.4px;
    color:var(--sidebar-muted);
    font-size:10px;
    font-weight:650;
    margin:0 12px 10px
}
.nav-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border-radius:7px;
    min-height:42px;
    color:var(--sidebar-text);
    margin:3px 0;
    font-size:12px
}
.nav-item>span:not(.nav-count):not(.team-dot){
    min-width:0;
    overflow-wrap:anywhere
}
.nav-item>.icon{
    width:17px;
    height:17px;
    color:var(--sidebar-muted)
}
.nav-item>.icon:last-child:not(:first-child){
    width:13px;
    height:13px;
    margin-left:auto
}
.nav-item:hover{
    background:var(--sidebar-hover);
    color:#fff
}
.nav-item.is-active{
    background:var(--sidebar-active);
    color:#fff;
    box-shadow:inset 3px 0 var(--brand-cyan);
    font-weight:600
}
.nav-item.is-active .icon{
    color:var(--brand-invoice-light)
}
.nav-count{
    margin-left:auto;
    font-size:11px;
    color:var(--sidebar-muted);
    font-variant-numeric:tabular-nums;
    padding-left:6px
}
.is-active .nav-count{
    color:var(--sidebar-text)
}
.nav-section-heading{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:34px;
    padding-right:12px
}
.team-count-label{
    font-size:10px;
    color:var(--sidebar-muted);
    margin-bottom:10px
}
.team-dot{
    width:8px;
    height:8px;
    border-radius:3px;
    flex:0 0 auto;
    margin:0 5px;
    background:var(--brand-cyan)
}
.team-dot.tone-blue{
    background:var(--brand-invoice-light)
}
.team-dot.tone-sky{
    background:var(--brand-invoice-light)
}
.team-dot.tone-ice{
    background:var(--brand-invoice-light)
}
.team-dot.tone-steel{
    background:var(--brand-invoice-light)
}
.sidebar-note{
    font-size:12px;
    color:var(--sidebar-muted);
    padding:0 12px
}
.sidebar-admin{
    margin-top:34px
}
.sidebar-footer{
    padding:16px
}
.delivery-mode{
    background:var(--sidebar-hover);
    border:1px solid var(--sidebar-border);
    border-radius:9px;
    padding:11px;
    display:flex;
    align-items:flex-start;
    gap:8px;
    margin-bottom:18px
}
.delivery-mode>span{
    width:6px;
    height:6px;
    background:#d3bf86;
    border-radius:50%;
    margin-top:6px;
    flex-shrink:0
}
.delivery-mode strong{
    font-size:11px;
    font-weight:500;
    color:var(--sidebar-text);
    display:block
}
.delivery-mode small{
    display:block;
    font-size:10px;
    color:var(--sidebar-muted);
    margin-top:2px
}
.account{
    display:flex;
    gap:9px;
    align-items:center
}
.account-info{
    flex:1;
    min-width:0
}
.account-info strong{
    display:block;
    color:var(--sidebar-text);
    font-size:12px;
    overflow:hidden;
    text-overflow:ellipsis
}
.account-info small{
    display:block;
    color:var(--sidebar-muted);
    font-size:10px
}
.avatar{
    background:var(--brand-ice);
    color:var(--brand-blue);
    display:inline-flex;
    justify-content:center;
    align-items:center;
    width:38px;
    height:38px;
    border-radius:12px;
    font-size:14px;
    font-weight:650;
    flex-shrink:0
}
.avatar--account{
    background:var(--sidebar-active);
    color:var(--sidebar-text);
    width:33px;
    height:33px;
    border:1px solid var(--sidebar-border);
    border-radius:50%
}
.avatar--small{
    width:28px;
    height:28px;
    border-radius:9px;
    font-size:11px
}
.avatar--tiny{
    width:23px;
    height:23px;
    border-radius:50%;
    font-size:10px
}
.avatar--large{
    width:46px;
    height:46px;
    font-size:18px;
    border-radius:14px
}
.avatar--outbound{
    background:var(--brand-ice);
    color:var(--heading)
}
.avatar.tone-blue{
    background:var(--brand-ice);
    color:var(--brand-blue)
}
.avatar.tone-sky{
    background:var(--brand-ice);
    color:var(--brand-blue)
}
.avatar.tone-ice{
    background:var(--brand-ice);
    color:var(--brand-blue)
}
.avatar.tone-steel{
    background:var(--brand-ice);
    color:var(--brand-blue)
}
.icon-button{
    border:0;
    background:transparent;
    color:inherit;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:36px;
    min-height:36px;
    border-radius:7px
}
.icon-button:hover{
    background:var(--surface-muted)
}
.sidebar .icon-button:hover{
    background:var(--sidebar-hover)
}
.workspace-topbar{
    height:64px;
    padding:0 32px;
    border-bottom:1px solid var(--line);
    background:var(--surface);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px
}
.breadcrumb{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:12px;
    color:var(--muted);
    min-width:0
}
.breadcrumb>.icon{
    width:17px;
    height:17px
}
.breadcrumb strong{
    font-weight:500;
    color:var(--ink)
}
.breadcrumb-separator{
    color:var(--icon-muted)
}
.button{
    border:1px solid transparent;
    background:var(--brand-cyan);
    color:var(--heading);
    display:inline-flex;
    gap:8px;
    justify-content:center;
    align-items:center;
    padding:9px 15px;
    font-size:12px;
    line-height:1.5;
    font-weight:600;
    border-radius:7px;
    text-decoration:none;
    min-height:37px;
    white-space:nowrap
}
.button .icon{
    width:16px;
    height:16px
}
.button:hover{
    background:var(--accent-dark);
    color:#fff
}
.button:disabled{
    opacity:.6;
    cursor:wait
}
.button--secondary{
    background:var(--surface);
    border-color:var(--line);
    color:var(--heading);
    box-shadow:0 1px 2px #01304110
}
.button--secondary:hover{
    background:var(--surface-muted);
    color:var(--heading);
    border-color:var(--border-strong)
}
.button--quiet{
    color:var(--muted);
    background:transparent;
    border:0;
    font-weight:400;
    padding:7px 8px
}
.button--quiet:hover{
    color:var(--accent);
    background:var(--surface-muted)
}
.button--small{
    padding:6px 10px;
    font-size:11px;
    min-height:32px
}
.text-button{
    padding:6px 0;
    background:transparent;
    color:var(--accent);
    border:0;
    font-size:11px;
    font-weight:600
}
.text-button:hover{
    text-decoration:underline
}
.inbox-page{
    padding:34px 36px;
    max-width:1800px;
    margin:auto
}
.page-heading{
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:center;
    margin-bottom:30px
}
.eyebrow{
    color:var(--accent);
    font-size:10px;
    font-weight:650;
    letter-spacing:1.7px;
    text-transform:uppercase;
    margin-bottom:10px
}
.page-heading h1{
    margin:0 0 9px;
    display:flex;
    align-items:center;
    gap:12px
}
.heading-count{
    font-size:12px;
    font-weight:500;
    color:var(--muted);
    background:var(--surface-muted);
    padding:2px 8px;
    border:1px solid var(--line);
    border-radius:6px;
    line-height:1.6;
    letter-spacing:0
}
.page-description{
    color:var(--muted);
    font-size:13px;
    margin:0
}
.channel-badge{
    display:flex;
    align-items:center;
    gap:7px;
    font-size:11px;
    color:var(--muted);
    padding:7px 11px;
    background:var(--brand-ice);
    border:1px solid var(--line);
    border-radius:20px;
    white-space:nowrap
}
.channel-badge .icon{
    width:14px;
    height:14px
}
.inbox-panel{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 3px 9px #01304103
}
.inbox-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    border-bottom:1px solid var(--line);
    padding:0 22px
}
.status-tabs{
    display:flex;
    align-items:center;
    gap:26px
}
.status-tab{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:var(--muted);
    padding:18px 0 16px;
    border-bottom:2px solid transparent;
    font-size:12px;
    white-space:nowrap
}
.status-tab span{
    padding:1px 6px;
    background:var(--surface-muted);
    color:var(--muted);
    font-size:10px;
    border-radius:5px
}
.status-tab.is-active{
    color:var(--accent);
    border-bottom-color:var(--accent);
    font-weight:650
}
.status-tab.is-active span{
    background:var(--brand-ice);
    color:var(--brand-blue)
}
.status-tab:hover{
    color:var(--accent)
}
.sort-summary{
    font-size:11px;
    color:var(--muted)
}
.queue-filter-form{
    padding:16px 22px 12px;
    border-bottom:1px solid var(--line)
}
.search-row{
    display:flex;
    align-items:center;
    gap:8px
}
.search-input{
    flex:1;
    position:relative;
    display:flex;
    align-items:center;
    min-width:0
}
.search-input>.icon{
    position:absolute;
    left:12px;
    width:17px;
    height:17px;
    color:var(--icon-muted);
    pointer-events:none
}
.search-input input{
    padding-left:37px;
    padding-right:42px;
    background:var(--surface-subtle);
    border-color:var(--line)
}
.search-input kbd{
    position:absolute;
    right:12px;
    pointer-events:none
}
kbd{
    font:11px "Segoe UI",sans-serif;
    min-width:22px;
    border:1px solid var(--line);
    border-radius:4px;
    color:var(--muted);
    display:inline-block;
    padding:1px 6px;
    text-align:center;
    background:var(--surface);
    box-shadow:0 1px 1px #01304110
}
input,textarea,select{
    background:var(--surface);
    color:var(--ink);
    width:100%;
    min-width:0;
    border:1px solid var(--line);
    border-radius:7px;
    padding:9px 11px;
    font-size:13px
}
input::placeholder,textarea::placeholder{
    color:var(--muted)
}
select{
    padding-right:25px;
    min-height:38px
}
textarea{
    line-height:1.7;
    resize:vertical
}
label{
    display:block;
    color:var(--label);
    font-size:12px;
    font-weight:500;
    margin-bottom:7px
}
.field{
    min-width:0
}
.filter-disclosure{
    margin-top:10px
}
.filter-disclosure>summary{
    display:flex;
    align-items:center;
    gap:7px;
    width:fit-content;
    font-size:11px;
    color:var(--muted);
    padding:4px 0;
    list-style:none
}
summary::-webkit-details-marker{
    display:none
}
.filter-disclosure>summary .icon{
    width:14px;
    height:14px
}
.filter-disclosure>summary::after{
    content:"+";
    margin-left:5px;
    font-size:14px
}
.filter-disclosure[open]>summary::after{
    content:"−"
}
.filter-fields{
    display:grid;
    grid-template-columns:minmax(0,2fr) minmax(130px,1fr) max-content;
    align-items:end;
    gap:12px;
    padding:12px 0 6px
}
.filter-active-dot{
    background:var(--accent);
    width:6px;
    height:6px;
    border-radius:50%
}
.ticket-table-heading,.ticket-row{
    display:grid;
    grid-template-columns:minmax(260px,2.8fr) minmax(110px,1fr) minmax(100px,.9fr) 85px 76px;
    gap:20px;
    align-items:center;
    padding:0 22px
}
.ticket-table-heading{
    background:var(--surface-subtle);
    padding-top:11px;
    padding-bottom:11px;
    font-size:10px;
    font-weight:500;
    color:var(--muted)
}
.ticket-table-heading span:last-child{
    text-align:right
}
.ticket-list{
    list-style:none;
    margin:0;
    padding:0
}
.ticket-list li{
    border-top:1px solid var(--line-soft)
}
.ticket-row{
    padding-top:20px;
    padding-bottom:20px;
    color:inherit;
    transition:background .12s
}
.ticket-row:hover{
    background:var(--surface-hover)
}
.ticket-row:focus-visible{
    outline-offset:-4px
}
.ticket-row__conversation{
    display:flex;
    gap:13px;
    align-items:flex-start;
    min-width:0
}
.ticket-row__conversation>.avatar{
    margin-top:2px
}
.ticket-row__subject{
    display:grid;
    gap:4px;
    min-width:0
}
.row-customer{
    color:var(--muted);
    font-size:11px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
}
.ticket-number{
    color:var(--muted);
    padding-left:6px
}
.ticket-row__subject>strong{
    font-size:13px;
    color:var(--heading);
    font-weight:600;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}
.message-preview{
    color:var(--muted);
    font-size:11px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}
.ticket-row__team{
    display:grid;
    gap:5px;
    min-width:0;
    justify-items:start
}
.team-tag{
    background:var(--brand-ice);
    border:1px solid var(--line);
    color:var(--brand-invoice-blue);
    font-size:10px;
    padding:3px 7px;
    border-radius:5px;
    display:inline-block;
    max-width:100%;
    overflow-wrap:anywhere
}
.mailbox-label{
    color:var(--muted);
    font-size:10px
}
.ticket-row__assignee{
    display:flex;
    gap:6px;
    font-size:11px;
    align-items:center;
    min-width:0;
    overflow-wrap:anywhere
}
.unassigned-icon{
    display:inline-flex
}
.unassigned-icon .icon{
    width:15px;
    height:15px;
    color:var(--muted)
}
.status{
    display:inline-flex;
    align-items:center;
    gap:5px;
    font-size:10px;
    font-weight:500;
    padding:3px 7px;
    border-radius:5px;
    background:var(--surface-muted);
    color:var(--muted);
    white-space:nowrap
}
.status::before{
    content:"";
    display:block;
    width:5px;
    height:5px;
    border-radius:50%;
    background:currentColor;
    flex-shrink:0
}
.status--open{
    background:var(--brand-ice);
    color:var(--brand-blue)
}
.status--waiting{
    background:#fbf2dc;
    color:#8c6a21
}
.status--closed{
    background:#edf0f3;
    color:#66758b
}
.ticket-row__time{
    font-size:11px;
    color:var(--muted);
    text-align:right;
    white-space:nowrap;
    font-variant-numeric:tabular-nums
}
.ticket-row__time span{
    display:block;
    color:var(--muted);
    font-size:10px;
    margin-top:3px
}
.list-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:54px;
    padding:12px 22px;
    border-top:1px solid var(--line);
    font-size:11px;
    color:var(--muted)
}
.pagination{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:11px;
    color:var(--muted)
}
.pagination .icon{
    width:15px;
    height:15px
}
.workspace-caption{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    margin-top:20px;
    color:var(--muted);
    font-size:10px
}
.tiny-dot{
    display:inline-block;
    background:var(--brand-blue);
    border-radius:50%;
    width:5px;
    height:5px;
    margin-right:6px;
    vertical-align:middle
}
.empty-state{
    text-align:center;
    padding:65px 20px;
    color:var(--muted)
}
.empty-state h2{
    margin:16px 0 8px;
    font-size:20px
}
.empty-state p{
    font-size:13px
}
.empty-state .button{
    margin-top:10px
}
.empty-icon{
    background:var(--surface-muted);
    color:var(--brand-blue);
    border:1px solid var(--line);
    display:inline-flex;
    width:55px;
    height:55px;
    justify-content:center;
    align-items:center;
    border-radius:17px
}
.empty-icon .icon{
    width:25px;
    height:25px
}
.back-link{
    color:var(--brand-blue);
    display:inline-flex;
    gap:10px;
    align-items:center
}
.back-link .icon{
    width:16px;
    height:16px
}
.ticket-workspace{
    display:grid;
    grid-template-columns:minmax(0,1fr) 255px;
    height:calc(100dvh - 64px);
    min-height:560px
}
.conversation-queue{
    display:flex;
    flex-direction:column;
    border-right:1px solid var(--line);
    background:var(--surface-subtle);
    min-height:0
}
.queue-heading{
    padding:23px 18px 10px;
    display:flex;
    gap:9px;
    align-items:center;
    font-size:14px
}
.queue-search-link{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:11px;
    color:var(--muted);
    margin:0 18px 18px;
    padding:8px 9px;
    background:var(--surface-muted);
    border:1px solid var(--line);
    border-radius:6px
}
.queue-search-link .icon{
    width:14px;
    height:14px
}
.queue-items{
    min-height:0;
    overflow-y:auto;
    flex:1
}
.queue-card{
    color:inherit;
    display:block;
    padding:18px 18px 16px;
    border-top:1px solid var(--line);
    border-left:3px solid transparent
}
.queue-card:hover{
    background:var(--surface-muted)
}
.queue-card.is-selected{
    background:var(--brand-ice);
    border-left-color:var(--brand-cyan)
}
.queue-card__meta{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:10px;
    color:var(--muted);
    margin-bottom:9px
}
.queue-card__meta>span:nth-child(2){
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}
.status-dot{
    height:6px;
    width:6px;
    border-radius:50%;
    flex-shrink:0;
    margin-left:auto
}
.status-dot--open{
    background:var(--brand-cyan)
}
.status-dot--waiting{
    background:#c19b49
}
.status-dot--closed{
    background:#8894a5
}
.queue-card>strong{
    font-size:12px;
    font-weight:600;
    display:block;
    overflow-wrap:anywhere
}
.queue-card p{
    color:var(--muted);
    font-size:11px;
    line-height:1.55;
    margin:5px 0 12px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden
}
.queue-card__footer{
    display:flex;
    justify-content:space-between;
    gap:10px;
    font-size:9px;
    color:var(--muted)
}
.queue-card__footer>span{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}
.queue-card__footer time{
    white-space:nowrap
}
.queue-pagination{
    padding:8px 16px
}
.queue-pagination:empty{
    display:none
}
.queue-empty{
    padding:20px;
    color:var(--muted);
    font-size:12px
}
.conversation-column{
    display:flex;
    flex-direction:column;
    background:var(--surface);
    min-width:0;
    min-height:0
}
.conversation-heading{
    padding:24px 28px 20px;
    border-bottom:1px solid var(--line)
}
.conversation-eyebrow{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-bottom:13px
}
.conversation-eyebrow>span:first-child{
    display:flex;
    align-items:center;
    gap:7px;
    font-size:10px;
    color:var(--muted)
}
.conversation-eyebrow .icon{
    width:14px;
    height:14px
}
.conversation-heading h1{
    font-size:21px;
    line-height:1.35;
    letter-spacing:-.4px;
    margin-bottom:10px;
    overflow-wrap:anywhere
}
.conversation-subtitle{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    font-size:11px;
    color:var(--muted);
    overflow-wrap:anywhere
}
.conversation-subtitle>span+span::before{
    content:"·";
    margin-right:12px;
    color:var(--icon-muted)
}
.conversation-scroll{
    overflow-y:auto;
    flex:1;
    min-height:0;
    padding:8px 28px 30px
}
.timeline{
    padding:0
}
.message{
    padding:24px 0;
    border-bottom:1px solid var(--line-soft)
}
.message:last-child{
    border:0
}
.message-header{
    display:flex;
    gap:11px;
    align-items:center
}
.message-author{
    min-width:0;
    flex:1
}
.message-author strong{
    display:block;
    font-size:12px;
    font-weight:600;
    overflow-wrap:anywhere
}
.message-author>span{
    color:var(--muted);
    font-size:10px
}
.message-header time{
    align-self:flex-start;
    font-size:10px;
    color:var(--muted);
    white-space:nowrap;
    margin-top:3px
}
.message-content{
    margin:10px 0 0 49px
}
.message-addresses{
    color:var(--muted);
    font-size:10px;
    overflow-wrap:anywhere
}
.message-addresses summary{
    width:fit-content;
    list-style:none
}
.message-addresses summary::after{
    content:"⌄";
    margin-left:7px
}
.message-addresses[open] summary::after{
    content:"⌃"
}
.message-addresses dl{
    display:grid;
    grid-template-columns:58px minmax(0,1fr);
    gap:5px;
    background:var(--surface-subtle);
    padding:12px;
    border-radius:7px
}
.message-addresses dd{
    margin:0
}
.message-body{
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    font-size:13px;
    line-height:1.8;
    margin-top:14px;
    color:var(--heading)
}
.message--outbound .message-body{
    background:var(--brand-ice);
    border:1px solid var(--line);
    padding:15px 17px;
    border-radius:0 10px 10px
}
.reply-composer{
    margin-top:16px;
    border:1px solid var(--border-strong);
    border-radius:11px;
    overflow:hidden;
    box-shadow:0 3px 8px #01304106
}
.composer-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:13px 16px;
    border-bottom:1px solid var(--line);
    background:var(--surface-subtle)
}
.composer-heading h2{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    font-weight:600;
    margin:0
}
.composer-heading .icon{
    width:15px;
    height:15px;
    color:var(--brand-blue)
}
.composer-channel{
    font-size:10px;
    color:var(--muted)
}
.composer-addresses{
    padding:12px 16px 8px
}
.composer-addresses p{
    display:flex;
    gap:12px;
    font-size:10px;
    margin:0 0 5px;
    overflow-wrap:anywhere
}
.composer-addresses p>span{
    width:27px;
    flex-shrink:0;
    color:var(--muted)
}
.composer-addresses strong{
    font-weight:400;
    color:var(--label);
    min-width:0
}
.composer-body textarea{
    border:0;
    border-radius:0;
    padding:12px 16px;
    min-height:150px
}
.composer-body textarea:focus-visible{
    outline-offset:-3px
}
.composer-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding:12px 16px
}
.draft-state{
    font-size:10px;
    color:var(--muted)
}
.delivery-hint{
    font-size:10px;
    color:var(--muted);
    padding:10px 16px;
    margin:0;
    border-top:1px solid var(--line);
    background:var(--surface-subtle)
}
.inactive-notice{
    background:#fcf5e5;
    color:#7c6536;
    border:1px solid #eadfc6;
    padding:18px;
    border-radius:9px;
    font-size:12px;
    margin-top:18px
}
.ticket-inspector{
    background:var(--surface-subtle);
    border-left:1px solid var(--line);
    overflow-y:auto;
    min-height:0
}
.inspector-details>summary{
    display:flex;
    justify-content:space-between;
    padding:22px 20px;
    font-size:12px;
    font-weight:600;
    list-style:none;
    border-bottom:1px solid var(--line)
}
.inspector-details>summary .icon{
    width:15px;
    height:15px;
    transition:transform .15s
}
.inspector-details[open]>summary .icon{
    transform:rotate(90deg)
}
.inspector-content{
    padding:0 20px
}
.inspector-section{
    padding:22px 0;
    border-bottom:1px solid var(--line)
}
.inspector-section:last-child{
    border:0
}
.section-label{
    color:var(--muted);
    text-transform:uppercase;
    font-size:9px;
    letter-spacing:1.3px;
    font-weight:650;
    margin-bottom:14px
}
.customer-card{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:7px
}
.customer-card strong{
    font-size:12px;
    font-weight:600;
    overflow-wrap:anywhere;
    max-width:100%;
    margin-top:2px
}
.customer-card>span:last-child{
    color:var(--muted);
    font-size:10px
}
.ticket-inspector label{
    color:var(--muted);
    font-size:11px
}
.ticket-inspector select{
    font-size:11px;
    background:var(--surface)
}
.assignment-actions{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:7px;
    margin-top:9px
}
.status-form{
    margin-top:23px
}
.status-form>.button{
    margin-top:9px
}
.detail-list{
    margin:0
}
.detail-list dt{
    font-size:10px;
    color:var(--muted);
    margin-top:14px
}
.detail-list dd{
    margin:4px 0 0;
    font-size:11px;
    color:var(--muted);
    overflow-wrap:anywhere
}
.detail-list dt:first-child{
    margin:0
}
.detail-channel{
    display:flex;
    align-items:center;
    gap:7px
}
.detail-channel .icon{
    width:14px;
    height:14px
}
.alerts{
    padding:12px 26px;
    border-bottom:1px solid var(--line);
    background:var(--brand-ice)
}
.alert{
    color:var(--label);
    font-size:12px;
    display:flex;
    gap:8px;
    align-items:center
}
.alert .icon{
    width:16px;
    height:16px
}
.alerts~.ticket-workspace{
    height:calc(100dvh - 108px)
}
.errorlist{
    font-size:12px;
    color:var(--danger-ink);
    padding-left:19px;
    margin:8px 0
}
.reply-composer .errorlist{
    padding:0 22px 0 36px
}
.mobile-bar{
    display:none
}
.skip-link{
    position:fixed;
    left:10px;
    top:-90px;
    background:var(--surface);
    padding:10px 14px;
    border-radius:6px;
    z-index:100
}
.skip-link:focus{
    top:10px
}
.sr-only{
    clip-path:inset(50%);
    height:1px;
    width:1px;
    overflow:hidden;
    position:absolute;
    white-space:nowrap
}
dialog{
    border:1px solid var(--line);
    padding:24px;
    border-radius:14px;
    width:410px;
    max-width:calc(100vw - 32px);
    color:var(--ink);
    box-shadow:0 20px 60px #01304130
}
dialog::backdrop{
    background:#01304166
}
.dialog-heading{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px
}
.dialog-heading h2{
    margin:0
}
dialog p{
    font-size:12px;
    margin:12px 0 20px
}
.shortcut-list{
    display:grid;
    grid-template-columns:1fr max-content;
    gap:14px;
    font-size:13px
}
.shortcut-list dd{
    margin:0
}
.auth-page .app-shell{
    display:block
}
.login-layout{
    display:grid;
    grid-template-columns:46% 54%;
    min-height:100dvh
}
.login-story{
    background:var(--brand-navy);
    color:var(--sidebar-text);
    padding:18px 35px 30px;
    display:flex;
    flex-direction:column;
    justify-content:space-between
}
.login-story .brand{
    padding:25px 10px
}
.login-story-content{
    padding:60px 8%
}
.login-story-content .eyebrow{
    color:var(--brand-invoice-light)
}
.login-story h1{
    color:var(--sidebar-text);
    font-size:clamp(32px,3.2vw,50px);
    font-weight:500;
    line-height:1.2;
    letter-spacing:-1.4px
}
.login-story-content>p:not(.eyebrow){
    max-width:360px;
    font-size:15px;
    color:var(--sidebar-muted);
    line-height:1.8
}
.login-signature{
    color:var(--sidebar-muted);
    font-size:11px;
    padding-left:10px
}
.login-motif{
    display:flex;
    align-items:center;
    margin-top:45px
}
.login-motif>span{
    border:1px solid var(--sidebar-border);
    background:var(--sidebar-hover);
    border-radius:14px;
    padding:18px;
    color:var(--brand-invoice-light)
}
.login-motif i{
    width:36px;
    height:1px;
    background:var(--sidebar-border)
}
.login-form-area{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:50px;
    background:var(--surface-subtle)
}
.login-panel{
    max-width:370px;
    width:100%
}
.login-welcome{
    font-size:12px;
    color:var(--brand-blue)
}
.login-panel h2{
    font-size:26px;
    letter-spacing:-.6px;
    margin:10px 0
}
.login-panel>p{
    font-size:13px;
    line-height:1.7
}
.login-panel form{
    display:grid;
    gap:20px;
    margin-top:32px
}
.login-panel input{
    min-height:44px
}
.login-panel .button{
    min-height:44px;
    margin-top:4px;
    justify-content:space-between
}
.login-help{
    border-top:1px solid var(--line);
    padding-top:24px;
    margin-top:30px;
    color:var(--muted);
    font-size:11px!important
}
@media(min-width:1800px){
    .ticket-workspace{
        grid-template-columns:minmax(0,1fr) 290px
    }
    .conversation-heading{
        padding:28px 40px 24px
    }
    .conversation-scroll{
        padding-left:40px;
        padding-right:40px
    }
}
@media(max-width:1450px){
    :root{
        --sidebar-width:210px
    }
    .brand{
        padding-left:18px
    }
    .ticket-workspace{
        grid-template-columns:minmax(0,1fr) 250px
    }
    .inbox-page{
        padding:28px
    }
    .ticket-table-heading,.ticket-row{
        gap:14px;
        grid-template-columns:minmax(240px,2.8fr) minmax(100px,1fr) 100px 78px 68px
    }
}
@media(max-width:1150px){
    .ticket-row__assignee,.ticket-table-heading>span:nth-child(3){
        display:none
    }
    .ticket-table-heading,.ticket-row{
        grid-template-columns:minmax(200px,2.8fr) minmax(100px,1fr) 75px 65px
    }
    .sort-summary,.channel-badge,.workspace-caption>span:last-child{
        display:none
    }
    .conversation-heading,.conversation-scroll{
        padding-left:22px;
        padding-right:22px
    }
    .message-content{
        margin-left:0
    }
    .conversation-eyebrow{
        flex-wrap:wrap
    }
}
@media(max-width:900px){
    :root{
        --sidebar-width:190px
    }
    .brand{
        padding:25px 15px;
        gap:9px
    }
    .brand small{
        font-size:9px
    }
    .sidebar-scroll{
        padding-left:8px;
        padding-right:8px
    }
    .nav-item{
        padding:10px;
        gap:8px;
        font-size:11px
    }
    .sidebar-footer{
        padding:12px
    }
    .inbox-page{
        padding:24px 20px
    }
    .workspace-topbar{
        padding:0 20px
    }
    .ticket-workspace{
        grid-template-columns:minmax(0,1fr);
        height:auto;
        min-height:0
    }
    .ticket-inspector{
        grid-row:1;
        border-left:0;
        border-bottom:1px solid var(--line);
        overflow:visible
    }
    .inspector-details>summary{
        padding:15px 22px
    }
    .inspector-content{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:0 24px
    }
    .inspector-section{
        padding:18px 0
    }
    .customer-card .avatar{
        display:none
    }
    .conversation-scroll{
        overflow:visible
    }
    .alerts~.ticket-workspace{
        height:auto
    }
    .ticket-table-heading,.ticket-row{
        grid-template-columns:minmax(180px,1fr) 75px 60px
    }
    .ticket-row__team,.ticket-table-heading>span:nth-child(2){
        display:none
    }
    .status-tabs{
        gap:22px
    }
    .page-description{
        font-size:12px
    }
    .filter-fields{
        grid-template-columns:1fr 1fr
    }
    .filter-fields>.button{
        justify-self:start
    }
}
@media(max-width:680px){
    .app-shell{
        display:block
    }
    .sidebar{
        height:auto;
        position:static
    }
    .workspace.js-enabled .sidebar{
        display:none;
        position:fixed;
        top:57px;
        left:0;
        right:0;
        box-shadow:0 12px 24px #01304130
    }
    .workspace.js-enabled.nav-open .sidebar{
        display:flex;
        max-height:calc(100dvh - 57px)
    }
    .sidebar .brand{
        display:none
    }
    .sidebar-scroll{
        padding:15px
    }
    .workspace-label{
        display:none
    }
    .nav-section-heading,.sidebar-admin{
        margin-top:18px
    }
    .sidebar-footer{
        display:block;
        padding:12px 20px
    }
    .delivery-mode{
        display:none
    }
    .mobile-bar{
        display:flex;
        position:sticky;
        top:0;
        z-index:20;
        align-items:center;
        justify-content:space-between;
        padding:10px 16px;
        background:var(--surface);
        border-bottom:1px solid var(--line)
    }
    .mobile-bar a{
        color:var(--heading);
        font-weight:650;
        letter-spacing:1px
    }
    .mobile-bar a span{
        font-size:11px;
        font-weight:400;
        letter-spacing:0;
        margin-left:6px
    }
    .workspace-topbar{
        height:50px;
        padding:0 18px
    }
    .shortcuts-trigger{
        display:none
    }
    .breadcrumb{
        font-size:11px;
        gap:9px
    }
    .inbox-page{
        padding:25px 14px
    }
    .page-heading{
        margin-bottom:22px
    }
    .page-heading h1{
        font-size:26px
    }
    .page-description{
        max-width:280px;
        line-height:1.7
    }
    .eyebrow{
        font-size:9px
    }
    .inbox-toolbar{
        padding:0 14px
    }
    .status-tabs{
        justify-content:space-between;
        width:100%;
        gap:12px
    }
    .status-tab{
        gap:5px;
        font-size:11px;
        padding-top:16px;
        padding-bottom:14px
    }
    .queue-filter-form{
        padding:13px 12px 10px
    }
    .search-row{
        flex-wrap:wrap
    }
    .search-input{
        flex-basis:calc(100% - 90px)
    }
    .search-input input{
        font-size:11px;
        padding-right:12px
    }
    .search-input kbd{
        display:none
    }
    .search-row .button{
        padding:8px 11px
    }
    .search-row>.button--quiet{
        font-size:11px
    }
    .filter-fields{
        grid-template-columns:1fr
    }
    .ticket-table-heading{
        display:none
    }
    .ticket-row{
        grid-template-columns:minmax(0,1fr) auto;
        gap:10px;
        padding:18px 14px
    }
    .ticket-row__conversation{
        grid-column:1 / -1;
        gap:10px
    }
    .ticket-row__conversation>.avatar{
        width:34px;
        height:34px;
        border-radius:10px;
        font-size:12px
    }
    .ticket-row__subject>strong{
        white-space:normal;
        line-height:1.5;
        font-size:13px
    }
    .ticket-row__status{
        grid-column:1;
        grid-row:2;
        margin-left:44px
    }
    .ticket-row__time{
        grid-column:2;
        grid-row:2;
        font-size:10px;
        display:flex;
        gap:6px;
        align-items:center
    }
    .ticket-row__time span{
        display:inline;
        margin:0
    }
    .row-customer{
        font-size:10px
    }
    .message-preview{
        font-size:11px
    }
    .list-footer{
        padding:14px
    }
    .workspace-caption{
        margin-top:15px;
        font-size:9px
    }
    .conversation-heading{
        padding:20px 18px
    }
    .conversation-heading h1{
        font-size:20px
    }
    .conversation-scroll{
        padding:0 18px 25px
    }
    .message-header{
        gap:8px
    }
    .message-author strong{
        font-size:11px
    }
    .message-header time{
        font-size:9px
    }
    .message-header .avatar{
        width:30px;
        height:30px;
        border-radius:9px;
        font-size:11px
    }
    .message-body{
        font-size:13px
    }
    .composer-footer{
        flex-wrap:wrap
    }
    .inspector-details>summary{
        padding:14px 18px
    }
    .inspector-content{
        grid-template-columns:1fr;
        padding:0 18px
    }
    .inspector-section{
        padding:16px 0
    }
    .composer-addresses p{
        font-size:10px
    }
    .delivery-hint{
        font-size:9px
    }
    .alerts{
        padding:12px 18px
    }
    .login-layout{
        grid-template-columns:1fr
    }
    .login-story{
        padding:10px 22px
    }
    .login-story .brand{
        display:flex;
        padding:16px 0
    }
    .login-story-content,.login-signature{
        display:none
    }
    .login-form-area{
        padding:45px 25px;
        min-height:calc(100dvh - 92px)
    }
    .login-panel h2{
        font-size:24px
    }
}
@media(prefers-reduced-motion:reduce){
    *,*::before,*::after{
        transition:none!important;
        scroll-behavior:auto!important
    }
}
@media print{
    .sidebar,.workspace-topbar,.mobile-bar,.conversation-queue,.reply-composer,.ticket-inspector,dialog{
        display:none!important
    }
    .app-shell,.ticket-workspace{
        display:block;
        height:auto
    }
    .conversation-scroll{
        overflow:visible
    }
    .message{
        break-inside:avoid
    }
}

.delivery-card {border:1px solid #b8dce6;background:var(--surface-subtle);border-radius:10px;padding:12px 16px;margin:8px 0 14px;display:grid;gap:5px;font-size:13px}.delivery-card strong{color:var(--heading)}.delivery-card p:empty,.delivery-card span:empty{display:none}.delivery-card a{width:fit-content}.delivery-card .field-help{margin:0}
