/* preparation.css */
/* Only Preparación and its own dialogs. Reuses Cinexso's primary/secondary controls. */
#admin-shell:has(#preparation-pane:not([hidden])) #library-totals{display:none}
#preparation-pane,.preparation-dialog{--prep-line:#3e3e3e;--prep-muted:#a5a5a5;--prep-ink:#f4f4f4;color:var(--prep-ink)}
#preparation-pane .prep-toolbar,#preparation-pane .prep-filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 16px}
#preparation-pane .prep-toolbar>p{flex:1;margin:0;color:var(--prep-muted);font-size:12px}
#preparation-pane .prep-filters input{flex:1;min-width:140px}
#preparation-pane .prep-filters select{width:auto;max-width:100%;min-width:150px}
#preparation-pane .prep-tabs{display:flex;flex-wrap:wrap;gap:5px}
#preparation-pane .prep-tabs button{min-height:38px;padding:8px 12px}
#preparation-pane .prep-tabs button[aria-pressed=true]{background:#353535;color:#e0e0e0;border-color:#18c9e1}
#preparation-pane .prep-form{border:1px solid var(--prep-line);border-radius:10px;padding:18px;margin-bottom:18px;background:#171717}
#preparation-pane .prep-form h2{margin:0 0 12px;font-size:18px}
#preparation-pane .prep-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}
#preparation-pane .prep-link-row label{min-width:0}
#preparation-pane .prep-preview{display:flex;gap:15px;align-items:flex-start;margin:17px 0}
#preparation-pane .prep-preview img{width:76px;aspect-ratio:2/3;object-fit:cover;border-radius:5px}
#preparation-pane .prep-preview h3{margin:0 0 6px;font-size:17px}
#preparation-pane .prep-preview p{margin:5px 0;color:var(--prep-muted);font-size:12px;overflow-wrap:anywhere}
#preparation-pane .prep-create-options{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;margin:14px 0}
#preparation-pane .prep-create-options label{min-width:0}
#preparation-pane input,#preparation-pane textarea,#preparation-pane select,.preparation-dialog input,.preparation-dialog textarea,.preparation-dialog select{width:100%;min-width:0;background:#1a1a1a;color:#f4f4f4;border:1px solid #3e3e3e;border-radius:6px;min-height:40px;padding:9px;font:inherit;font-size:13px}
#preparation-pane label,.preparation-dialog label{display:grid;gap:6px;font-size:12px;color:var(--prep-muted)}
#preparation-pane .prep-form-actions,.preparation-dialog .prep-dialog-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end;margin-top:15px}
#preparation-pane .prep-row{display:grid;grid-template-columns:44px minmax(0,1fr) 158px 150px auto;gap:13px;align-items:center;border-bottom:1px solid var(--prep-line);padding:14px 0}
#preparation-pane .prep-poster{width:44px;height:64px;object-fit:cover;border-radius:4px;background:#353535;display:grid;place-items:center;color:#e0e0e0}
#preparation-pane .prep-copy,#preparation-pane .prep-person{min-width:0;overflow-wrap:anywhere}
#preparation-pane .prep-copy strong{display:block;font-size:14px}
#preparation-pane .prep-copy small,#preparation-pane .prep-person small{display:block;font-size:11px;color:var(--prep-muted);margin:4px 0}
#preparation-pane .prep-person strong{font-size:12px;display:block}
#preparation-pane .prep-person span{font-size:11px;color:var(--prep-muted)}
#preparation-pane .prep-stage{font-size:12px;color:#e0e0e0;overflow-wrap:anywhere}
#preparation-pane .prep-row-actions button{font-size:12px;min-height:36px;padding:7px 10px}
#preparation-pane .prep-empty{padding:24px 0;color:var(--prep-muted);font-size:13px}
#preparation-pane .prep-feedback,.preparation-dialog .prep-feedback{color:#e0e0e0;font-size:12px;overflow-wrap:anywhere}
#preparation-pane .prep-feedback:empty,.preparation-dialog .prep-feedback:empty{display:none}
#preparation-pane .prep-summary{font-size:12px;color:var(--prep-muted);margin:12px 0}
.preparation-dialog{width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;background:#171717;border:1px solid #3e3e3e;border-radius:12px}
.preparation-dialog::backdrop{background:#070707c9}
.preparation-dialog .account-sheet{padding:20px;max-width:none}
.preparation-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}
.preparation-dialog h2{font-size:19px;margin:0;color:#f4f4f4}
.preparation-dialog .prep-dialog-fields{display:grid;gap:14px}
.preparation-dialog p{font-size:12px;color:var(--prep-muted);overflow-wrap:anywhere}
.preparation-dialog .prep-link-preview{padding:13px;border:1px solid #3e3e3e;border-radius:7px;margin-top:14px}
.preparation-dialog .prep-link-preview strong{display:block;color:#f4f4f4}
.preparation-dialog .prep-warning{color:#eed19d}
#preparation-pane .prep-toolbar>p{min-width:180px}
@media(max-width:699px){#preparation-pane .prep-toolbar>p{flex-basis:100%;min-width:0}#preparation-pane .prep-toolbar>button{flex:1}}
@media(max-width:1100px){#preparation-pane .prep-row{grid-template-columns:40px minmax(0,1fr) 155px auto}#preparation-pane .prep-person{grid-column:2;grid-row:2}#preparation-pane .prep-stage{grid-column:3;grid-row:1 / span 2}#preparation-pane .prep-row-actions{grid-column:4;grid-row:1 / span 2}#preparation-pane .prep-poster{grid-row:1 / span 2;width:40px;height:58px}#preparation-pane .prep-row{gap:6px 11px}}
@media(max-width:699px){#preparation-pane .prep-row{grid-template-columns:40px minmax(0,1fr) auto;gap:7px 10px}#preparation-pane .prep-person{grid-column:2;grid-row:2}#preparation-pane .prep-stage{grid-column:2;grid-row:3}#preparation-pane .prep-row-actions{grid-column:3;grid-row:1 / span 3}#preparation-pane .prep-poster{grid-row:1 / span 3}#preparation-pane .prep-link-row,#preparation-pane .prep-create-options{grid-template-columns:1fr}#preparation-pane .prep-filters select{width:100%}#preparation-pane .prep-filters input{flex-basis:100%}#preparation-pane .prep-form{padding:13px}#preparation-pane input,#preparation-pane textarea,#preparation-pane select,.preparation-dialog input,.preparation-dialog textarea,.preparation-dialog select{font-size:16px;min-height:44px}#preparation-pane .prep-row-actions button,#preparation-pane .prep-tabs button{min-height:44px}.preparation-dialog .account-sheet{padding:16px}}
/* Compact inventory: only the list scrolls; the toolbar and filters stay outside it. */
#preparation-pane .prep-toolbar{margin-bottom:12px}
#preparation-pane .prep-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 14px}
#preparation-pane .prep-stats>div{display:flex;align-items:center;gap:9px;border:1px solid #3e3e3e;border-radius:8px;background:#171717;padding:11px 14px}
#preparation-pane .prep-stats strong{font-size:22px;font-variant-numeric:tabular-nums;line-height:1.2}
#preparation-pane .prep-stats span{font-size:12px;color:#a5a5a5}
#preparation-pane .prep-stats .is-published strong{color:#75dca4}
#preparation-pane .prep-stats .is-retired strong{color:#ff929e}
#preparation-pane .prep-filters{gap:8px;margin-bottom:8px}
#preparation-pane .prep-tabs{flex-basis:100%}
#preparation-pane .prep-table-head,#preparation-pane .prep-row{display:grid;grid-template-columns:minmax(170px,1.8fr) minmax(110px,1fr) minmax(142px,1.15fr) minmax(100px,.9fr) 66px;gap:12px;align-items:center}
#preparation-pane .prep-table-head{padding:8px 12px;font-size:11px;color:#a5a5a5;border:1px solid #3e3e3e;border-bottom:0;background:#1e1e1e;border-radius:8px 8px 0 0}
#preparation-pane [data-prep-list]{max-height:min(440px,52dvh);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#18c9e1 #171717;border:1px solid #3e3e3e;border-radius:0 0 8px 8px;background:#141414;scrollbar-gutter:stable}
#preparation-pane [data-prep-list]:focus-visible{outline:2px solid #18c9e1;outline-offset:2px}
#preparation-pane .prep-row{padding:9px 12px;border-left:3px solid #18c9e1;min-height:72px}
#preparation-pane .prep-row:last-child{border-bottom:0}
#preparation-pane .prep-row>*{grid-column:auto;grid-row:auto;min-width:0}
#preparation-pane .prep-movie{display:flex;align-items:center;gap:10px;min-width:0}
#preparation-pane .prep-poster{width:32px;height:46px;flex:none;grid-row:auto}
#preparation-pane .prep-copy strong{font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#preparation-pane .prep-copy small,#preparation-pane .prep-person small{font-size:10px;margin:3px 0 0}
#preparation-pane .prep-person strong{font-size:12px}
#preparation-pane .prep-dates small{display:block;font-size:10px;line-height:1.8;color:#f4f4f4}
#preparation-pane .prep-dates span{color:#a5a5a5;display:inline-block;min-width:62px}
#preparation-pane .prep-stage{justify-self:start;border:1px solid #474747;background:#303030;color:#e0e0e0;border-radius:5px;padding:4px 7px;font-size:11px;line-height:1.4}
#preparation-pane .prep-status-published{border-left-color:#65d295;background:#10271f66}
#preparation-pane .prep-status-published .prep-stage{color:#92e5b7;border-color:#326e4d;background:#153d2b}
#preparation-pane .prep-status-hidden{border-left-color:#ef7989;background:#30182266}
#preparation-pane .prep-status-hidden .prep-stage{color:#ffacb7;border-color:#803f4c;background:#48242d}
#preparation-pane .prep-row-actions button{width:66px;padding:6px;font-size:11px}
#preparation-pane .prep-empty{margin:0;padding:20px 12px}
#preparation-pane .prep-form{max-width:760px;padding:14px;margin-bottom:14px}
#preparation-pane .prep-preview{max-height:170px;overflow:auto;gap:12px;margin:12px 0}
#preparation-pane .prep-preview img{width:54px;flex:none}
#preparation-pane .prep-preview h3{font-size:15px}
.preparation-dialog .prep-history{border-top:1px solid #3e3e3e;padding-top:10px}
.preparation-dialog .prep-history h3{font-size:13px;margin:0 0 8px}
.preparation-dialog .prep-history ol{list-style:none;margin:8px 0;padding:0;max-height:170px;overflow:auto}
.preparation-dialog .prep-history li{border-left:2px solid #18c9e1;padding:5px 10px;margin:6px 0;font-size:12px}
.preparation-dialog .prep-history li span{display:block;color:#a5a5a5;font-size:11px;margin-top:3px}
@media(max-width:1100px){#preparation-pane .prep-table-head{display:none}#preparation-pane [data-prep-list]{border-radius:8px}#preparation-pane .prep-row{grid-template-columns:minmax(0,1fr) minmax(110px,.65fr) 110px 66px;gap:7px 10px}#preparation-pane .prep-row .prep-movie{grid-column:1;grid-row:1 / span 2}#preparation-pane .prep-row .prep-person{grid-column:2;grid-row:1}#preparation-pane .prep-row .prep-dates{grid-column:2;grid-row:2}#preparation-pane .prep-row .prep-stage{grid-column:3;grid-row:1 / span 2}#preparation-pane .prep-row .prep-row-actions{grid-column:4;grid-row:1 / span 2}}
@media(max-width:699px){#preparation-pane .prep-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#preparation-pane .prep-stats>div{padding:8px 10px}#preparation-pane .prep-stats strong{font-size:19px}#preparation-pane .prep-stats span{font-size:11px}#preparation-pane .prep-tabs button{padding:6px 8px;font-size:11px;min-height:36px}#preparation-pane .prep-row{grid-template-columns:minmax(0,1fr) 66px;padding:10px;gap:6px 9px}#preparation-pane .prep-row .prep-movie{grid-column:1;grid-row:1}#preparation-pane .prep-row .prep-person{grid-column:1;grid-row:2;padding-left:42px}#preparation-pane .prep-row .prep-dates{grid-column:1;grid-row:3;padding-left:42px}#preparation-pane .prep-row .prep-stage{grid-column:2;grid-row:1}#preparation-pane .prep-row .prep-row-actions{grid-column:2;grid-row:2 / span 2;align-self:end}#preparation-pane .prep-stage{font-size:10px;padding:3px 5px}#preparation-pane .prep-person small{line-height:1.4}#preparation-pane [data-prep-list]{max-height:50dvh}}
/* Paginated inventory: actions remain outside the list, no nested list scroll. */
#preparation-pane [data-prep-list]{overflow:visible!important;max-height:none!important;height:auto!important;min-height:0!important;scrollbar-gutter:auto!important}
#preparation-pane .prep-row{height:64px!important;min-height:64px!important;box-sizing:border-box!important;padding:7px 12px!important}
#preparation-pane .prep-poster{width:28px!important;height:42px!important}
#preparation-pane .prep-pages{display:flex;align-items:center;justify-content:center;gap:12px;padding:8px 0;font-size:11px;color:#c8c8c8;min-height:44px}
#preparation-pane .prep-pages button{min-height:36px;padding:0 12px;background:#262626;border:1px solid #585858;border-radius:8px;color:#f0f0f0;font-size:11px}
#preparation-pane .prep-pages button:disabled{opacity:.4}
#preparation-pane{overflow:visible!important}
@media(max-width:699px){#preparation-pane .prep-toolbar>p{display:none}#preparation-pane .prep-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:8px 0}#preparation-pane .prep-stats>div{padding:6px;display:grid;gap:2px}#preparation-pane .prep-stats strong{font-size:18px}#preparation-pane .prep-stats span{font-size:9px}#preparation-pane .prep-tabs{gap:4px}#preparation-pane .prep-tabs button{font-size:10px;padding:0 7px;min-height:32px}#preparation-pane .prep-row{height:122px!important;min-height:122px!important;padding:6px 8px!important;gap:4px 8px!important}#preparation-pane .prep-copy strong{font-size:12px}#preparation-pane .prep-person,#preparation-pane .prep-dates{font-size:10px}#preparation-pane .prep-summary{margin:6px 0}#preparation-pane .prep-filters{gap:6px}}
@media(max-width:699px){
#admin-shell:has(#preparation-pane:not([hidden])) .admin-section-head{min-height:0!important;margin-bottom:12px!important;padding-bottom:0!important}
#preparation-pane .prep-toolbar button{font-size:11px!important;padding:0 8px!important;white-space:nowrap;min-height:40px!important}
#preparation-pane .prep-filters{display:grid!important;grid-template-columns:minmax(0,1fr) 130px!important}
#preparation-pane .prep-tabs{grid-column:1/-1!important}
#preparation-pane .prep-filters>input{min-width:0!important;width:100%!important;box-sizing:border-box}
#preparation-pane .prep-filters>.cinexso-select{width:100%!important;min-width:0!important}
#preparation-pane .prep-row{display:grid!important;grid-template-columns:minmax(0,1fr) 92px!important;grid-template-rows:46px 28px 30px!important;align-items:center!important}
#preparation-pane .prep-movie{grid-column:1;grid-row:1;min-width:0!important}
#preparation-pane .prep-stage{grid-column:2;grid-row:1;max-width:90px;font-size:10px!important}
#preparation-pane .prep-person{grid-column:1;grid-row:2;display:block!important}
#preparation-pane .prep-person strong{font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
#preparation-pane .prep-person small{display:none}
#preparation-pane .prep-dates{grid-column:1;grid-row:3;display:grid!important;gap:1px!important}
#preparation-pane .prep-dates small{font-size:8px!important;line-height:12px!important}
#preparation-pane .prep-row-actions{grid-column:2;grid-row:2/4}
#preparation-pane .prep-row-actions button{min-height:36px!important;font-size:10px!important}
}
body:has(#preparation-pane:not([hidden])){overflow:hidden!important;height:100dvh!important}
#admin-shell:has(#preparation-pane:not([hidden])){height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}

@media(max-width:700px){#preparation-pane .prep-filters:has([data-prep-type-filter]){grid-template-columns:repeat(2,minmax(0,1fr))!important}#preparation-pane .prep-filters:has([data-prep-type-filter])>input{grid-column:1/-1}}

@media(max-width:700px){#admin-shell #preparation-pane .prep-filters:has([data-prep-type-filter]){grid-template-columns:repeat(2,minmax(0,1fr))!important}#admin-shell #preparation-pane .prep-filters:has([data-prep-type-filter])>input{grid-column:1/-1!important}#admin-shell #preparation-pane .prep-row{grid-template-rows:56px 38px 28px!important;height:auto!important}#admin-shell #preparation-pane .prep-copy strong{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;max-height:30px;line-height:15px!important}#admin-shell #preparation-pane .prep-row-actions{grid-row:2!important}#admin-shell #preparation-pane .prep-dates{grid-column:1/-1!important;grid-row:3!important;display:flex!important;justify-content:space-between;gap:8px!important}#admin-shell #preparation-pane .prep-dates small{display:block!important;white-space:nowrap!important;font-size:8px!important;line-height:12px!important;min-width:0}#admin-shell #preparation-pane .prep-dates small span{display:block!important;line-height:12px!important}}
\n/* Preparation action widths 20261029 */\n@media(min-width:901px){#admin-shell #preparation-pane .prep-table-head,#admin-shell #preparation-pane .prep-row{grid-template-columns:minmax(170px,1.8fr) minmax(110px,1fr) minmax(142px,1.15fr) minmax(100px,.9fr) 160px!important}}\n@media(min-width:701px) and (max-width:900px){#admin-shell #preparation-pane .prep-row{grid-template-columns:minmax(0,1fr) minmax(110px,.65fr) 110px 160px!important}}\n#admin-shell #preparation-pane .prep-row-actions{display:flex!important;gap:8px!important;align-items:center;justify-content:flex-end;min-width:0}\n#admin-shell #preparation-pane .prep-row-actions button{flex:0 0 auto!important;width:auto!important;min-width:66px!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;padding:7px 10px!important;line-height:1.2!important}\n@media(max-width:700px){#admin-shell #preparation-pane .prep-row-actions{flex-direction:column;align-items:stretch;gap:5px!important}#admin-shell #preparation-pane .prep-row-actions button{min-height:32px!important;padding:5px 8px!important}}\n
@media(min-width:901px){#admin-shell #preparation-pane .prep-table-head,#admin-shell #preparation-pane .prep-row{grid-template-columns:minmax(170px,1.8fr) minmax(110px,1fr) minmax(142px,1.15fr) minmax(100px,.9fr) 160px!important}}
@media(min-width:701px) and (max-width:900px){#admin-shell #preparation-pane .prep-row{grid-template-columns:minmax(0,1fr) minmax(110px,.65fr) 110px 160px!important}}
#admin-shell #preparation-pane .prep-row-actions{display:flex!important;gap:8px!important;align-items:center;justify-content:flex-end;min-width:0}#admin-shell #preparation-pane .prep-row-actions button{flex:0 0 auto!important;width:auto!important;min-width:66px!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;padding:7px 10px!important;line-height:1.2!important}
@media(max-width:700px){#admin-shell #preparation-pane .prep-row-actions{flex-direction:column;align-items:stretch;gap:5px!important}#admin-shell #preparation-pane .prep-row-actions button{min-height:32px!important;padding:5px 8px!important}}

/* preparation-scroll.css */
/* The complete Preparation tab owns its vertical scroll, including its form. */
#admin-shell:not(.is-hidden):not([hidden]):has(#preparation-pane:not([hidden])){
 display:flex!important;
 flex-direction:column;
 height:100dvh!important;
 max-height:100dvh!important;
 min-height:0;
 box-sizing:border-box;
}
#admin-shell:not(.is-hidden):not([hidden]):has(#preparation-pane:not([hidden]))>.admin-head{flex:0 0 auto}
#admin-shell:not(.is-hidden):not([hidden]):has(#preparation-pane:not([hidden]))>.admin-layout{
 flex:1 1 0;
 min-height:0;
 grid-template-rows:minmax(0,1fr);
 overflow:hidden;
}
#admin-shell:not(.is-hidden):not([hidden]):has(#preparation-pane:not([hidden])) .admin-content{
 display:flex;
 flex-direction:column;
 align-self:stretch;
 height:100%;
 max-height:100%;
 min-height:0;
 overflow:hidden;
}
#admin-shell:not(.is-hidden):not([hidden]):has(#preparation-pane:not([hidden])) .admin-section-head{flex:0 0 auto}
#admin-shell #preparation-pane:not([hidden]){
 flex:1 1 0;
 min-height:0;
 max-height:none;
 overflow-y:auto!important;
 overflow-x:hidden;
 overscroll-behavior-y:contain;
 scrollbar-gutter:stable;
 scrollbar-width:thin;
 scrollbar-color:#18c9e1 #171717;
 padding-bottom:24px;
}
#admin-shell #preparation-pane [data-prep-list]{max-height:none;overflow:visible}
#admin-shell #preparation-pane::-webkit-scrollbar{display:block!important;width:10px!important}
#admin-shell #preparation-pane::-webkit-scrollbar-track{background:#171717}
#admin-shell #preparation-pane::-webkit-scrollbar-thumb{background:#18c9e1;border:2px solid #171717;border-radius:8px}

/* tickets.css */
/* Existing Cinexso palette; all ticket controls share the administration geometry. */
.admin-navigation-flat .admin-nav{gap:8px}.admin-navigation-flat .admin-nav>[data-admin-tab]{min-height:48px;margin:0}.admin-navigation-flat .admin-nav .admin-nav-icon{width:22px;height:22px;display:grid;place-items:center}.admin-navigation-flat .admin-nav .admin-nav-icon svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#admin-shell [data-admin-pane=conexiones]:not(.general-services-view) .diagnosis-tabs>#connections-services-tab,#admin-shell [data-admin-pane=conexiones].general-services-view .diagnosis-tabs>#connections-diagnosis-tab{display:none}
.general-services-back{display:none}.general-services-view .general-services-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:16px!important}.general-services-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.admin-navigation-flat [data-admin-pane=conexiones]:not(.general-services-view)>.admin-frame-tools{display:none!important}
.tickets-root{color:#f4f4f4;min-width:0;font-size:13px;--tickets-line:#3e3e3e;--tickets-surface:#1b1b1b;--tickets-input:#161616}
.tickets-root *{box-sizing:border-box}.tickets-root [hidden]{display:none!important}.tickets-root svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.tickets-root button{font:inherit;cursor:pointer;box-sizing:border-box}.tickets-root button:disabled{cursor:wait;opacity:.6}.tickets-root button:focus-visible,.tickets-root input:focus-visible,.tickets-root textarea:focus-visible{outline:2px solid #18c9e1;outline-offset:2px}
.tickets-root button.secondary,.tickets-root .ticket-compose button.secondary{background:#232323;color:#efefef;border:1px solid #474747;border-radius:8px}
.tickets-root button.primary{background:#18c9e1;color:#f7f7f7;border:1px solid #18c9e1;border-radius:8px}
.tickets-root :is(.ticket-tools,.ticket-management,.ticket-reply-bottom,.ticket-compose-actions)>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;min-height:44px;padding:0 14px;font-size:12px;white-space:nowrap;margin:0}
.tickets-root .ticket-tabs{display:flex;gap:8px;height:65px;min-height:65px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;border-bottom:1px solid var(--tickets-line);margin:0;padding:0 0 20px;flex-wrap:nowrap}
.tickets-root .ticket-tabs button{display:inline-flex;gap:8px;align-items:center;justify-content:center;flex:none;height:44px;min-height:44px;padding:0 14px;background:#202020;color:#c8c8c8;border:1px solid #474747;border-radius:8px;font-size:12px;white-space:nowrap}
.tickets-root .ticket-tabs [aria-selected=true]{color:#18c9e1;background:#323232;border-color:#18c9e1}.tickets-root [data-ticket-count]{font-size:10px;padding:2px 5px;border-radius:4px;background:#3c3c3c;color:#dedede;line-height:16px}
.tickets-root .ticket-tools{display:flex;align-items:center;gap:10px;padding:18px 0 0;margin:0 0 14px;min-width:0}
.tickets-root .ticket-search{display:flex;align-items:center;gap:10px;height:44px;min-height:44px;min-width:0;flex:1;padding:0 13px;border:1px solid #474747;border-radius:8px;background:var(--tickets-input);margin:0;font-size:12px;color:#b6b6b6}
.tickets-root .ticket-search>span{display:block;flex:none}.tickets-root .ticket-search input{display:block;background:none!important;border:0!important;color:#f3f3f3!important;width:100%;min-width:0;padding:0!important;height:42px!important;min-height:42px!important;margin:0;font:inherit;line-height:20px;box-shadow:none}
.tickets-root .ticket-search input::placeholder,.tickets-root textarea::placeholder,.tickets-root .ticket-compose input::placeholder{color:#a4a4a4;opacity:1}
.tickets-root .ticket-feedback{margin:0 0 12px;min-height:18px;font-size:12px;line-height:18px;color:#c1c1c1;overflow-wrap:anywhere}
.tickets-root .ticket-workspace{display:grid;grid-template-columns:minmax(250px,.72fr) minmax(0,1.4fr);gap:16px;align-items:stretch;min-width:0}
.tickets-root .ticket-inbox{height:clamp(490px,calc(100dvh - 360px),650px);min-height:490px;min-width:0;border:1px solid var(--tickets-line);background:#161616;border-radius:10px;display:flex;flex-direction:column;overflow:hidden}
.tickets-root .ticket-list-caption{height:50px;min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 12px;font-size:12px;font-weight:600}
.tickets-root [data-ticket-summary]{font-size:11px;font-weight:400;color:#b2b2b2}
.tickets-root .ticket-list,#admin-shell .tickets-root .ticket-list{display:block;flex:1;min-height:0!important;height:auto!important;max-height:none!important;margin:0!important;padding:0 10px 10px!important;overflow:auto!important;scrollbar-gutter:stable!important;scrollbar-width:thin;scrollbar-color:#18c9e1 #161616}
.tickets-root .ticket-item{display:block;width:100%;height:auto;min-height:110px;background:#1d1d1d;border:1px solid #404040;border-radius:8px;padding:13px;margin:0 0 10px;text-align:left;color:#e3e3e3}
.tickets-root .ticket-item.is-selected{background:#2b2b2b;border-color:#18c9e1;box-shadow:inset 3px 0 #18c9e1}
.tickets-root .ticket-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;line-height:17px;color:#bebebe}.tickets-root .ticket-item strong{display:block;font-size:13px;line-height:19px;overflow-wrap:anywhere;margin:10px 0}.tickets-root .ticket-requester{display:block;font-size:11px;margin:0 0 10px;color:#bfbfbf}.tickets-root .ticket-line time{font-size:10px;line-height:16px}.tickets-root .ticket-unread{color:#cbcbcb;font-size:10px}
.tickets-root .ticket-status{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:5px 8px;border-radius:5px;color:#b3b3b3;background:#2d2d2d;font-size:10px;line-height:16px;white-space:nowrap}.tickets-root .ticket-status[data-state=open]{color:#eed093;background:#3e3322}.tickets-root .ticket-status[data-state=closed]{color:#c7c7c7;background:#313131}
.tickets-root .ticket-pager{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:8px 10px;font-size:11px}.tickets-root .ticket-pager:empty{display:none}.tickets-root .ticket-pager button{height:44px;min-height:44px;font-size:11px;padding:0 10px}
.tickets-root .ticket-detail{min-width:0;min-height:0}.tickets-root .ticket-back{display:none}.tickets-root .ticket-conversation{height:100%;display:flex;flex-direction:column;min-width:0;min-height:490px;border:1px solid var(--tickets-line);border-radius:10px;background:var(--tickets-surface);overflow:hidden}
.tickets-root .ticket-conversation-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px;margin:0;width:auto;height:auto;border:0;border-bottom:1px solid var(--tickets-line);background:none;position:static}
.tickets-root .ticket-conversation-head>div{min-width:0}.tickets-root .ticket-conversation-head small{display:block;font-size:10px;letter-spacing:1px;color:#b9b9b9}.tickets-root h2{color:#f4f4f4!important;font-size:18px!important;line-height:25px;margin:7px 0!important;letter-spacing:-.3px;overflow-wrap:anywhere}.tickets-root .ticket-conversation-head p{font-size:11px;line-height:17px;color:#b3b3b3;margin:0;overflow-wrap:anywhere}
.tickets-root .ticket-management{display:flex;align-items:end;justify-content:flex-end;gap:8px;padding:10px 20px;border-bottom:1px solid var(--tickets-line)}.tickets-root .ticket-management>label{display:flex;align-items:center;gap:10px;min-width:0;flex:1;font-size:11px;color:#c9c9c9;margin:0}.tickets-root .ticket-management select{height:44px;min-width:0;max-width:160px;background:#232323;color:#efefef;border:1px solid #474747;border-radius:8px;font:inherit;font-size:12px}.tickets-root .ticket-management .cinexso-select{max-width:170px;flex:1;min-width:0}.tickets-root .ticket-management .select-trigger{height:44px;min-height:44px;font-size:11px}.tickets-root .ticket-management>button{font-size:11px;padding:0 10px}
.tickets-root .ticket-messages,#admin-shell .tickets-root .ticket-messages{display:flex;flex-direction:column;gap:14px;flex:1;min-height:140px!important;height:235px!important;max-height:310px!important;overflow:auto!important;margin:0!important;padding:18px 20px!important;scrollbar-width:thin;scrollbar-color:#18c9e1 #161616;scrollbar-gutter:stable}
.tickets-root .ticket-message{border:1px solid #484848;border-radius:9px;padding:12px;max-width:94%;background:#272727;flex:none}.tickets-root .ticket-message.is-staff{background:#333333;border-color:#5a5a5a;align-self:flex-end}.tickets-root .ticket-message-by{font-size:11px;color:#e2e2e2;display:flex;align-items:start;gap:12px;justify-content:space-between;flex-wrap:wrap}.tickets-root .ticket-message-by time{font-size:10px;font-weight:400;color:#ababab}.tickets-root .ticket-message p{font-size:12px;line-height:19px;margin:8px 0 0;color:#e0e0e0;white-space:pre-wrap;overflow-wrap:anywhere}.tickets-root .ticket-system{font-size:11px;color:#bababa;line-height:17px;margin:0}.tickets-root .ticket-system time{display:block;font-size:10px;color:#9b9b9b}
.tickets-root .ticket-reply{border:0;border-top:1px solid var(--tickets-line);padding:16px 20px 18px;margin:0}.tickets-root .ticket-reply>label,.tickets-root .ticket-compose>label{display:block;font-size:12px;line-height:18px;color:#e4e4e4;margin:0 0 8px}
.tickets-root textarea,.tickets-root .ticket-compose input{font:inherit;color:#f3f3f3!important;background:var(--tickets-input)!important;border:1px solid #4d4d4d!important;border-radius:8px;padding:12px!important;width:100%;max-width:100%;min-width:0;margin:0;resize:vertical;font-size:12px;line-height:18px;box-shadow:none}
.tickets-root .ticket-reply textarea{display:block;min-height:85px;max-height:240px}.tickets-root .ticket-reply-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.tickets-root .ticket-reply-bottom small{font-size:10px;line-height:16px;color:#b3b3b3;max-width:54%}.tickets-root .ticket-reply-bottom button{font-size:11px}
.tickets-root .ticket-empty{padding:25px 16px;color:#c7c7c7;font-size:13px;line-height:20px}.tickets-root .ticket-empty strong{display:block;color:#e9e9e9;font-size:14px}.tickets-root .ticket-empty p{font-size:12px;color:#b3b3b3;margin:10px 0}.tickets-root .ticket-select-empty{height:100%;min-height:300px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;border:1px solid var(--tickets-line);border-radius:10px;background:var(--tickets-surface)}.tickets-root .ticket-select-empty svg{width:32px;height:32px;margin-bottom:16px;color:#acacac}.tickets-root .ticket-loading{padding:20px;color:#bebebe}.tickets-root .ticket-closed{padding:16px 20px;border-top:1px solid var(--tickets-line)}.tickets-root .ticket-closed p{font-size:12px;color:#c1c1c1}.tickets-root .ticket-closed button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;font-size:12px}
.tickets-root .ticket-compose{padding:22px;border:1px solid var(--tickets-line);border-radius:10px;background:var(--tickets-surface)}.tickets-root .ticket-compose>p{font-size:12px;color:#b3b3b3;margin:12px 0 24px;line-height:19px}.tickets-root .ticket-compose>input{height:44px!important;min-height:44px!important;margin-bottom:20px!important}.tickets-root .ticket-compose textarea{min-height:180px}.tickets-root .ticket-compose-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
[data-account-ticket-unread]{display:inline-block;font-size:10px;margin-left:8px;padding:2px 6px;line-height:16px;border-radius:5px;background:#3b3b3b;color:#e3e3e3}
#account-dialog.account-hub[data-panel=tickets]>.account-sheet,#account-dialog.account-hub[data-panel=tickets] #account-main,#account-dialog.account-hub[data-panel=tickets] #account-workspace{background:#0e0e0e!important;color:#f4f4f4!important}
#account-dialog.account-hub[data-panel=tickets] #account-panel-copy:empty{display:none}#account-dialog.account-hub[data-panel=tickets] #account-panel-content{padding:0;min-width:0;max-width:none}#account-dialog[data-panel=tickets] .ticket-workspace{grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr)}
.tickets-root .admin-scroll-region::-webkit-scrollbar{width:10px}.tickets-root .admin-scroll-region::-webkit-scrollbar-track{background:#161616;border-radius:8px}.tickets-root .admin-scroll-region::-webkit-scrollbar-thumb{background:#18c9e1;border:3px solid #161616;border-radius:8px}.tickets-root .admin-scroll-region::-webkit-scrollbar-button{display:none}
@media(min-width:700px) and (max-width:1100px){.tickets-root .ticket-workspace,#account-dialog[data-panel=tickets] .ticket-workspace{grid-template-columns:minmax(220px,.78fr) minmax(0,1.22fr);gap:12px}.tickets-root .ticket-management{flex-wrap:wrap;padding:10px 14px}.tickets-root .ticket-management>label{flex-basis:100%;justify-content:space-between}.tickets-root .ticket-conversation-head{padding:16px}.tickets-root .ticket-reply{padding:14px}.tickets-root .ticket-reply-bottom{flex-wrap:wrap}.tickets-root .ticket-reply-bottom small{max-width:100%;flex-basis:100%}.tickets-root .ticket-reply-bottom button{margin-left:auto}}
@media(max-width:699px){
 .tickets-root .ticket-tabs{height:61px;min-height:61px;padding-bottom:16px;gap:6px}.tickets-root .ticket-tabs button{font-size:11px;padding:0 11px}
 #admin-shell.admin-controls-unified .tickets-root .ticket-tools,.tickets-root .ticket-tools{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;padding-top:14px!important;margin-bottom:12px!important}
 .tickets-root .ticket-search{grid-column:1/-1;width:100%}.tickets-root .ticket-tools>button{width:100%;min-width:0!important;max-width:none!important;font-size:12px!important;padding:0 8px!important;justify-self:stretch!important}.tickets-root .ticket-tools>button:last-child{grid-column:2}
 .tickets-root .ticket-workspace,#account-dialog[data-panel=tickets] .ticket-workspace{display:block}.tickets-root .ticket-inbox{height:auto;min-height:280px;max-height:calc(100dvh - 280px)}
 .tickets-root[data-view=list] .ticket-detail{display:none}.tickets-root:not([data-view=list]) .ticket-inbox,.tickets-root:not([data-view=list]) .ticket-tabs,.tickets-root:not([data-view=list]) .ticket-tools{display:none!important}
 .tickets-root .ticket-item{min-height:110px;padding:12px}.tickets-root .ticket-item strong{font-size:12px;line-height:18px}.tickets-root .ticket-list-caption{font-size:12px}.tickets-root [data-ticket-summary]{font-size:10px}
 .tickets-root .ticket-back{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:44px;min-height:44px;margin:0 0 14px;padding:0 12px;font-size:12px}
 .tickets-root .ticket-conversation{height:auto;min-height:0}.tickets-root .ticket-conversation-head{padding:16px;gap:10px}.tickets-root h2{font-size:16px!important;line-height:22px}.tickets-root .ticket-conversation-head p{font-size:10px;line-height:16px}.tickets-root .ticket-status{font-size:10px;padding:4px 6px}
 .tickets-root .ticket-management{padding:10px 14px;flex-wrap:wrap}.tickets-root .ticket-management>label{flex-basis:100%;justify-content:space-between}.tickets-root .ticket-management>button{flex:1;padding:0 8px}
 .tickets-root .ticket-messages,#admin-shell .tickets-root .ticket-messages{flex:none;height:auto!important;max-height:340px!important;min-height:120px!important;padding:16px!important;gap:12px}
 .tickets-root .ticket-message{max-width:96%;padding:11px}.tickets-root .ticket-message p{font-size:11px;line-height:18px}.tickets-root .ticket-message-by{font-size:10px;gap:6px}
 .tickets-root .ticket-reply{padding:16px}.tickets-root .ticket-reply-bottom{flex-wrap:wrap}.tickets-root .ticket-reply-bottom small{max-width:100%;flex-basis:100%}.tickets-root .ticket-reply-bottom button{width:100%;margin:0}
 .tickets-root .ticket-compose{padding:18px}.tickets-root .ticket-compose textarea{min-height:180px}.tickets-root .ticket-compose-actions>button{flex:1;min-width:0;font-size:12px}.tickets-root .ticket-compose-actions{gap:8px}.tickets-root .ticket-feedback{font-size:11px;line-height:17px}
}
/* Diagnostics uses the same top search/action frame as the other administration pages. */
.admin-navigation-flat [data-admin-pane=conexiones]:not(.general-services-view)>.admin-frame-tools{display:flex!important}
.admin-navigation-flat [data-admin-pane=conexiones]:not(.general-services-view)>.admin-frame-tools>#ops-connections-feedback{display:none!important}
.admin-navigation-flat .general-diagnosis-filters{display:contents!important}
.admin-navigation-flat .general-diagnosis-filters>label{flex:1;min-width:0}
.admin-navigation-flat .general-diagnosis-filters .diagnosis-device-filters{display:flex;gap:8px;margin:0;flex:none}
.admin-navigation-flat .general-diagnosis-filters .diagnosis-device-filters button{height:44px;min-height:44px;margin:0;padding:0 12px;font-size:12px}
.admin-navigation-flat .general-services-view .general-diagnosis-filters,.admin-navigation-flat .general-services-view .general-diagnosis-refresh{display:none!important}
.admin-navigation-flat [data-admin-pane=conexiones] .diagnosis-heading{display:none}
@media(max-width:699px){.admin-navigation-flat [data-admin-pane=conexiones]:not(.general-services-view)>.admin-frame-tools{display:grid!important;grid-template-columns:1fr!important}.admin-navigation-flat .general-diagnosis-filters .diagnosis-device-filters{display:flex;width:100%}.admin-navigation-flat .general-diagnosis-filters .diagnosis-device-filters button{flex:1;min-width:0}.admin-navigation-flat .general-diagnosis-refresh{width:100%}}
#account-dialog.account-hub[data-panel=tickets]{width:min(1280px,calc(100vw - 32px))!important;height:min(860px,calc(100dvh - 32px))!important;max-height:calc(100dvh - 32px)!important}
#account-dialog.account-hub[data-panel=tickets] .tickets-root :is(.ticket-tools,.ticket-tabs,.ticket-management,.ticket-reply-bottom,.ticket-compose-actions)>button{height:44px!important;min-height:44px!important;font-size:12px!important;padding:0 12px!important}
#account-dialog.account-hub[data-panel=tickets] .tickets-root .ticket-search input{height:42px!important;min-height:42px!important}
@media(max-width:699px){#account-dialog.account-hub[data-panel=tickets]{width:calc(100vw - 16px)!important;height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important}#account-dialog.account-hub[data-panel=tickets] #account-main{padding:12px!important}#account-dialog.account-hub[data-panel=tickets] .tickets-root :is(.ticket-tools,.ticket-tabs,.ticket-management,.ticket-reply-bottom,.ticket-compose-actions)>button{font-size:11px!important;padding:0 9px!important}}
/* Both workspace columns share one bottom edge; only their inner lists scroll. */
.tickets-root .ticket-workspace{height:clamp(620px,calc(100dvh - 360px),780px);min-height:0}
.tickets-root .ticket-inbox{height:100%;min-height:0;max-height:none}
.tickets-root .ticket-conversation{min-height:0;max-height:100%}
.tickets-root .ticket-detail{height:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:#18c9e1 #161616}
@media(max-width:699px){.tickets-root .ticket-workspace{height:auto;min-height:0}.tickets-root .ticket-inbox{height:calc(100dvh - 300px);min-height:240px;max-height:none}.tickets-root .ticket-detail{height:auto;overflow:visible}.tickets-root .ticket-conversation{max-height:none}}

/* Approved Tickets v2: shared inbox/conversation geometry and existing palette. */
.tickets-root .ticket-tabs [aria-selected=true]{background:#363636;border-color:#b5b5b5;box-shadow:inset 0 -3px #b5b5b5;color:#f4f4f4}.tickets-root .ticket-feedback:empty{display:none}.tickets-root .ticket-workspace{grid-template-columns:340px minmax(0,1fr);gap:16px}.tickets-root .ticket-inbox{background:#1b1b1b}.tickets-root .ticket-item{min-height:108px;background:#212121;border-color:#414141;padding:13px}.tickets-root .ticket-item.is-selected{background:#303030;border-color:#858585;box-shadow:inset 3px 0 #a6a6a6}.tickets-root .ticket-item strong{margin:9px 0 7px}.tickets-root .ticket-message{max-width:90%;align-self:flex-start;background:#272727;border-color:#4d4d4d;padding:13px 15px}.tickets-root .ticket-message.is-staff{background:#282828;border-color:#565656;align-self:flex-end}.tickets-root .ticket-status[data-state=working]{background:#353535;color:#d3b8f5}.tickets-root .ticket-status[data-state=open]{background:#333333;color:#c9c9c9}.tickets-root .ticket-status[data-state=closed]{background:#323232;color:#c0c0c0}.tickets-root .ticket-reply{margin-top:auto}.tickets-root .ticket-reply textarea{min-height:78px;height:78px}.tickets-root .ticket-tools{padding-top:16px;margin-bottom:18px}.tickets-root .ticket-conversation{min-height:490px}.tickets-root .ticket-management{background:#1b1b1b;flex-wrap:wrap}.tickets-root .ticket-management>label{font-size:11px}.tickets-root .ticket-management>button{min-height:44px}#account-panel-content .tickets-root .ticket-workspace{grid-template-columns:300px minmax(0,1fr)}
@media(min-width:1101px){.tickets-root .ticket-conversation{position:relative}.tickets-root .ticket-conversation-head{min-height:106px;padding-right:20px}.tickets-root .ticket-management{padding:10px 18px}.tickets-root .ticket-inbox,.tickets-root .ticket-detail{height:clamp(520px,calc(100dvh - 330px),680px);min-height:520px}.tickets-root .ticket-conversation{height:100%;min-height:0}.tickets-root .ticket-messages,#admin-shell .tickets-root .ticket-messages{height:auto!important;min-height:100px!important;max-height:none!important;flex:1}}
@media(min-width:700px) and (max-width:1100px){.tickets-root .ticket-workspace,#account-panel-content .tickets-root .ticket-workspace{grid-template-columns:240px minmax(0,1fr);gap:12px}.tickets-root .ticket-inbox{height:620px;min-height:620px}.tickets-root .ticket-detail{height:620px}.tickets-root .ticket-conversation{min-height:0}.tickets-root .ticket-messages,#admin-shell .tickets-root .ticket-messages{height:auto!important;max-height:none!important;min-height:100px!important}.tickets-root .ticket-management{gap:7px;padding:12px}.tickets-root .ticket-management>label{flex:1 1 100%}.tickets-root .ticket-management>button{flex:1}.tickets-root .ticket-message{max-width:100%}.tickets-root .ticket-conversation-head{padding:15px}.tickets-root .ticket-reply{padding:14px}}
@media(max-width:699px){.tickets-root .ticket-workspace,#account-panel-content .tickets-root .ticket-workspace{display:block}.tickets-root .ticket-tabs{height:auto;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding-bottom:15px}.tickets-root .ticket-tabs button{height:auto;min-height:48px;display:flex;flex-direction:column;gap:4px;padding:7px 3px;font-size:10px}.tickets-root .ticket-tools{flex-wrap:wrap;gap:8px}.tickets-root .ticket-search{flex:1 1 60%}.tickets-root .ticket-tools>button{font-size:11px;padding:0 10px}.tickets-root .ticket-tools>[data-ticket-action=new]{width:100%}.tickets-root .ticket-message{max-width:100%;padding:12px}.tickets-root .ticket-conversation-head{padding:15px}.tickets-root .ticket-management{padding:12px;gap:7px}.tickets-root .ticket-management>label{flex:1 1 100%}.tickets-root .ticket-management>button{flex:1}.tickets-root .ticket-reply{padding:14px}.tickets-root .ticket-reply-bottom small{font-size:10px}.tickets-root .ticket-back{min-height:44px}.tickets-root .ticket-inbox{min-height:320px;height:clamp(320px,55dvh,520px)}}

/* The viewport owns the frame; only inbox/messages/content scroll. */
.tickets-root .ticket-workspace{height:var(--ticket-available,calc(100dvh - 350px))!important;min-height:0!important;max-height:var(--ticket-available,calc(100dvh - 350px))!important;overflow:hidden}.tickets-root .ticket-workspace>.ticket-inbox,.tickets-root .ticket-workspace>.ticket-detail{height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden}.tickets-root .ticket-conversation{height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden}.tickets-root .ticket-conversation-head,.tickets-root .ticket-management,.tickets-root .ticket-reply,.tickets-root .ticket-closed{flex:none}.tickets-root .ticket-messages,#admin-shell .tickets-root .ticket-messages{flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain}.tickets-root .ticket-select-empty{min-height:0;height:100%}.tickets-root .ticket-compose{height:100%;overflow:auto;overscroll-behavior:contain}.tickets-root .ticket-list{overscroll-behavior:contain}.tickets-root .ticket-detail:has(.ticket-back){display:flex;flex-direction:column}.tickets-root .ticket-detail>.ticket-conversation{flex:1;min-height:0!important}.tickets-root .ticket-back{flex:none}.tickets-root .ticket-reply textarea{min-height:56px;height:56px;max-height:100px}.tickets-root .ticket-conversation-head{min-height:0;padding:12px 15px}.tickets-root .ticket-management{padding:8px 15px}.tickets-root .ticket-reply{padding:10px 15px}.tickets-root .ticket-reply-bottom{margin-top:8px}.tickets-root .ticket-closed{max-height:110px;overflow:auto}@media(max-width:699px){.tickets-root .ticket-workspace{height:var(--ticket-available,calc(100dvh - 300px))!important}.tickets-root .ticket-conversation-head{padding:10px 12px}.tickets-root .ticket-management{padding:7px 12px;flex-wrap:nowrap}.tickets-root .ticket-management>label{flex:1;gap:5px;font-size:0}.tickets-root .ticket-management .cinexso-select{width:100%;max-width:none}.tickets-root .ticket-management>button{flex:none;font-size:10px;padding:0 7px}.tickets-root .ticket-reply{padding:9px 12px}.tickets-root .ticket-reply>label{margin-bottom:5px}.tickets-root .ticket-back{margin:0;padding:0 10px;min-height:36px;height:36px}.tickets-root .ticket-conversation-head h2{font-size:15px!important;line-height:20px}.tickets-root .ticket-conversation-head p{font-size:10px}.tickets-root .ticket-reply textarea{min-height:48px;height:48px}.tickets-root .ticket-messages{padding:10px!important}}

/* Lock the exterior only while the Tickets admin pane is visible. */
html:has(#admin-shell:not(.is-hidden) [data-admin-pane=tickets]:not([hidden])),body:has(#admin-shell:not(.is-hidden) [data-admin-pane=tickets]:not([hidden])){height:100dvh!important;overflow:hidden!important;overscroll-behavior:none}#admin-shell:has([data-admin-pane=tickets]:not([hidden])){height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;box-sizing:border-box}#admin-shell:has([data-admin-pane=tickets]:not([hidden])) .admin-content{min-height:0}#admin-shell:has([data-admin-pane=tickets]:not([hidden])) .admin-layout{min-height:0}

/* Red unread indicator, including automatic updates outside the Tickets screen. */
#admin-shell [data-admin-ticket-unread]:not([hidden]){
 display:block;flex:0 0 10px;width:10px;min-width:10px!important;height:10px;min-height:10px;
 padding:0!important;margin-left:auto;border:0;border-radius:50%;font-size:0!important;line-height:0;background:#e98799!important;color:transparent;box-shadow:0 0 0 3px #e987991a
}
/* Account Tickets owns a fixed frame; only inbox, messages and compose scroll. */
#account-dialog.account-hub.account-visual-A[data-panel=tickets]{
 height:min(860px,var(--ticket-screen-height,calc(100dvh - 32px)))!important;
 max-height:var(--ticket-screen-height,calc(100dvh - 32px))!important;overflow:hidden!important
}
#account-dialog.account-hub.account-visual-A[data-panel=tickets]>.account-sheet{height:100%!important;min-height:0;max-height:100%!important;display:flex!important;flex-direction:column;overflow:hidden}
#account-dialog.account-hub.account-visual-A[data-panel=tickets] .account-hub-header{flex:none}
#account-dialog.account-hub.account-visual-A[data-panel=tickets] .account-responsive-layout{height:0!important;flex:1 1 0!important;min-height:0;overflow:hidden}
#account-dialog.account-hub.account-visual-A[data-panel=tickets] #account-main{height:100%!important;max-height:none!important;min-height:0!important;overflow:hidden!important;display:flex;flex-direction:column}
#account-dialog.account-hub.account-visual-A[data-panel=tickets] #account-workspace,
#account-dialog.account-hub.account-visual-A[data-panel=tickets] #account-panel-content,
#account-dialog.account-hub.account-visual-A[data-panel=tickets] .tickets-root{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden}
#account-dialog.account-hub.account-visual-A[data-panel=tickets] #account-panel-copy:empty{display:none}
#account-dialog.account-hub.account-visual-A[data-panel=tickets] .tickets-root>:not(.ticket-workspace){flex:none}
#account-dialog.account-hub.account-visual-A[data-panel=tickets] .tickets-root>.ticket-workspace{flex:1 1 0;height:auto!important;max-height:none!important;min-height:0!important}


/* Tickets shares Cuenta's frame; lists/messages own their scrolling. */
#account-dialog.account-hub.account-visual-A[data-panel=tickets]{
 width:min(600px,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;
 height:min(var(--account-frame-height,516px),calc(100dvh - 24px))!important;
 max-height:calc(100dvh - 24px)!important
}
#account-dialog.account-hub.account-visual-A.account-desktop[data-panel=tickets]{
 width:min(1160px,calc(100vw - 64px))!important;max-width:calc(100vw - 64px)!important;
 height:min(644px,calc(100dvh - 24px))!important
}
#admin-shell [data-admin-pane=tickets].tickets-root{
 box-sizing:border-box;width:min(1160px,100%);max-width:100%;
 height:var(--ticket-admin-frame-height,min(644px,calc(100dvh - 260px)));
 min-height:0;overflow:hidden;display:flex;flex-direction:column
}
#admin-shell [data-admin-pane=tickets].tickets-root>:not(.ticket-workspace){flex:none}
#admin-shell [data-admin-pane=tickets].tickets-root>.ticket-workspace{flex:1 1 0;min-height:0!important;height:auto!important;max-height:none!important}
.tickets-root .ticket-conversation-head h2{overflow-wrap:anywhere}

@media(min-width:600px){
#account-dialog.account-hub.account-visual-A:not(.account-desktop)[data-panel=tickets]{width:min(820px,calc(100vw - 40px))!important;max-width:calc(100vw - 40px)!important}
}

@media(max-width:699px){
.tickets-root .ticket-reply{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 8px;align-items:end}
.tickets-root .ticket-reply>label{grid-column:1/-1;margin:0!important}
.tickets-root .ticket-reply textarea{width:100%;height:48px!important;min-height:48px!important;margin:0}
.tickets-root .ticket-reply-bottom{margin:0;gap:0;flex-wrap:nowrap;align-items:center;height:48px}
.tickets-root .ticket-reply-bottom small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.tickets-root .ticket-reply-bottom button{width:auto!important;margin:0!important}
}


/* Compact conversation: reserve the frame for messages, not repeated chrome. */
.tickets-root .ticket-conversation-head{padding:9px 12px;gap:10px;align-items:center}
.tickets-root .ticket-conversation-head small{font-size:10px;line-height:14px;letter-spacing:.6px}
.tickets-root .ticket-conversation-head h2{font-size:15px!important;line-height:20px!important;margin:2px 0 0!important}
.tickets-root:not(.ticket-admin) .ticket-conversation-head p{display:none}
.tickets-root.ticket-admin .ticket-conversation-head p{font-size:11px;line-height:15px;margin:2px 0 0}
.tickets-root .ticket-messages,#admin-shell .tickets-root .ticket-messages{padding:10px 12px!important;gap:8px}
.tickets-root .ticket-message{padding:8px 10px;max-width:92%;border-radius:8px}
.tickets-root .ticket-message-by{gap:10px;line-height:16px;align-items:center}
.tickets-root .ticket-message-by time{white-space:nowrap}
.tickets-root .ticket-message p{margin:4px 0 0;font-size:12px;line-height:18px}
.tickets-root .ticket-reply{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;padding:10px 12px}
.tickets-root .ticket-reply>label,.tickets-root .ticket-reply-bottom small{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
.tickets-root .ticket-reply textarea{box-sizing:border-box;width:100%;min-width:0;height:var(--ticket-reply-height,44px)!important;min-height:44px!important;max-height:84px!important;resize:none;padding:11px 12px;font-size:14px;line-height:20px;margin:0;overflow-y:hidden}
.tickets-root .ticket-reply-bottom{display:flex;height:44px;margin:0!important;gap:0;flex-wrap:nowrap}
.tickets-root .ticket-reply-bottom button{width:auto!important;min-width:92px;height:44px!important;min-height:44px!important;padding:0 12px!important;margin:0!important}
@media(max-width:699px){
.tickets-root .ticket-conversation-head{padding:8px 10px}
.tickets-root .ticket-reply{padding:8px 10px;gap:7px}
.tickets-root .ticket-reply textarea{font-size:16px}
.tickets-root .ticket-reply-bottom button{min-width:44px;padding:0 9px!important}
.tickets-root .ticket-message{max-width:96%}
}


/* Compact inbox rows and persistent, dismissible closure notices. */
.tickets-root .ticket-item{min-height:0!important;padding:8px 10px;margin-bottom:6px}
.tickets-root .ticket-item strong{font-size:12px;line-height:17px;margin:4px 0}
.tickets-root .ticket-item .ticket-line{line-height:14px;gap:8px}
.tickets-root .ticket-item .ticket-status{padding:2px 6px;font-size:10px;line-height:14px}
.tickets-root .ticket-item .ticket-requester{margin:3px 0;font-size:11px;line-height:15px}
.tickets-root .ticket-list-caption{height:40px;min-height:40px}
.tickets-root .ticket-closure-notice{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:start;gap:6px;padding:9px 10px;margin:0 0 6px;border:1px solid #4d4d4d;border-left:3px solid #b5b5b5;border-radius:8px;background:#212121;min-width:0}
.tickets-root .ticket-closure-notice strong{display:block;font-size:12px;line-height:17px;color:#d1d1d1}
.tickets-root .ticket-closure-notice p{margin:3px 0;font-size:12px;line-height:17px;color:#f4f4f4;overflow-wrap:anywhere}
.tickets-root .ticket-closure-notice small{font-size:11px;line-height:16px;color:#b4b4b4}
.tickets-root .ticket-dismiss{width:28px;height:28px;min-height:28px;padding:0;margin:0;border:1px solid transparent;border-radius:6px;display:grid;place-items:center;background:transparent;color:#bbbbbb}
.tickets-root .ticket-dismiss span{font-size:21px;line-height:24px}
.tickets-root .ticket-dismiss:hover{background:#373737;border-color:#5c5c5c;color:#f4f4f4}
@media(pointer:coarse){.tickets-root .ticket-closure-notice{grid-template-columns:minmax(0,1fr) 44px}.tickets-root .ticket-dismiss{width:44px;height:44px;min-height:44px}}

/* Only the ticket status picker: retain the shared picker elsewhere. */
@media(min-width:700px){
 .ticket-admin .ticket-management label{gap:8px}
 .ticket-admin .ticket-management .cinexso-select{width:156px;flex:none}
 .ticket-admin #ticket-status-select-trigger{height:36px!important;min-height:36px!important;padding:6px 12px!important;font-size:12px!important}
 #ticket-status-select-options{box-sizing:border-box;width:156px!important;padding:5px!important;border-radius:8px!important}
 #ticket-status-select-options [role=option]{min-height:32px!important;height:32px!important;padding:6px 10px!important;font-size:12px!important;line-height:20px!important;border-radius:5px!important}
}
.ticket-admin .ticket-delete{color:#f2a3a9;border-color:#663b49}
