/* Responsive corrections, loaded after legacy module styles. */
/* Every icon action owns its badge; neither may consume its neighbour's space. */
body .tr29 .tr29-icon-button,body .tr29-dialog .tr29-icon-button{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;box-sizing:border-box}
body .tr29 .tr29-icon-button>svg,body .tr29-dialog .tr29-icon-button>svg{width:20px;height:20px;flex:0 0 20px;margin:0}
body .tr29 .tr29-icon-button>.exclusive-lock129,body .tr29-dialog .tr29-icon-button>.exclusive-lock129{position:absolute!important;inset:auto 2px 2px auto!important;width:12px!important;height:12px!important;min-width:12px!important;display:grid!important;place-items:center;padding:1px!important;margin:0!important;border-radius:4px;background:#fff;line-height:1;pointer-events:none}
body .tr29 .tr29-icon-button>.exclusive-lock129 svg,body .tr29-dialog .tr29-icon-button>.exclusive-lock129 svg{width:10px!important;height:10px!important;display:block;margin:0}
body .tr29-video-footer>div{gap:8px;flex-shrink:0}
body .home-tool :is(.approval-count1437,.direct-pending-count14759,.customer-approval-badge14733){background:#c93636!important;color:#fff!important;border:2px solid #fff!important;font-size:11px!important;line-height:1!important;height:25px!important;min-width:0!important;max-width:calc(100% - 10px);padding:4px 7px!important;border-radius:999px!important;white-space:nowrap;top:4px!important;right:4px!important;font-weight:750!important;z-index:4}

@media(max-width:760px){
 /* Values use the full row below the icon, rather than sharing its overlay. */
 body #app #homeKpis{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body #app #homeKpis .home-kpi{display:grid!important;grid-template-columns:minmax(0,1fr) 32px!important;grid-template-rows:auto auto auto auto!important;align-content:start;align-items:center;gap:4px 6px!important;min-width:0;min-height:0!important;padding:11px!important;border-radius:15px!important;overflow:visible!important}
 body #app #homeKpis .home-kpi:nth-child(n) .home-kpi-icon{position:relative!important;inset:auto!important;grid-column:2!important;grid-row:1!important;align-self:start;justify-self:end;width:30px!important;height:30px!important;min-width:30px!important;margin:0 0 4px!important;transform:none!important}
 body #app #homeKpis .home-kpi small{grid-column:1!important;grid-row:1!important;min-width:0;min-height:0!important;padding:0!important;margin:0!important;font-size:9px!important;line-height:1.3!important;letter-spacing:0!important;overflow-wrap:normal;word-break:normal}
 body #app #homeKpis .home-kpi .home-kpi-label{grid-column:1/-1!important;grid-row:2!important;margin:0!important;font-size:13px!important;line-height:1.2!important;min-width:0;word-break:normal}
 body #app #homeKpis .home-kpi strong{grid-column:1/-1!important;grid-row:3!important;max-width:100%;min-width:0;margin:0!important;font-size:clamp(14px,3.7vw,18px)!important;font-variant-numeric:tabular-nums;line-height:1.25!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;letter-spacing:-.02em!important}
 body #app #homeKpis .home-kpi>span:not(.home-kpi-icon){grid-column:1/-1!important;grid-row:4!important;margin:0!important;font-size:10px!important;line-height:1.3!important;white-space:normal}
 /* Heading text has its own column; the action gets a separate full row. */
 body #app .tr29-heading{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:8px 10px!important;padding:14px!important;align-items:start!important;border-radius:16px}
 body #app .tr29-heading-icon{grid-column:1;grid-row:1;width:38px;height:38px;border-radius:12px}
 body #app .tr29-heading>div:nth-child(2){grid-column:2;grid-row:1;min-width:0;width:auto}
 body #app .tr29-heading h1{font-size:22px!important;line-height:1.2!important;word-break:normal!important;overflow-wrap:normal!important;letter-spacing:-.4px}
 body #app .tr29-heading .tr29-eyebrow{font-size:9px;line-height:1.3;letter-spacing:.04em;word-break:normal;overflow-wrap:normal}
 body #app .tr29-heading p{font-size:12px;line-height:1.4;margin:5px 0 0;word-break:normal;overflow-wrap:normal}
 body #app .tr29-heading>[data-tr29-new-folder]{grid-column:1/-1;grid-row:2;justify-self:end;margin:0!important;min-height:44px}
 body #app .tr40-tabs{gap:6px;margin:10px 0;display:flex;flex-wrap:wrap}
 body #app .tr40-tabs button{min-height:44px;padding:8px 10px;font-size:12px;line-height:1.25}
 body #app .tr29-workspace{gap:10px}
 body #app .tr29-content{padding:10px;border-radius:14px}
 body #app .tr29-sidebar summary{min-height:44px;padding:10px}
 body #app .tr29-library-heading{gap:8px;margin-bottom:10px}
 body #app .tr29-folder-title h2{font-size:18px;line-height:1.25;word-break:normal}
 body #app .tr29-folder-actions{gap:8px}
 body #app .tr29-video-grid{grid-template-columns:1fr!important;gap:10px}
 body #app .tr29-video-art{aspect-ratio:auto;height:84px}
 body #app .tr29-video-info{padding:10px 12px 6px;gap:6px}
 body #app .tr29-video-info strong{font-size:14px;line-height:1.3;overflow-wrap:break-word}
 body #app .tr29-video-info>span{font-size:12px;line-height:1.4}
 body #app .tr29-video-footer{padding:4px 10px 10px;gap:8px}
 body #app .tr29-video-footer>span{font-size:11px}
 body #app .tr29-art-label{font-size:8px;bottom:8px}
 body #app .tr29-published{font-size:10px}
 body #app .tr29-toolbar .tr39-watch{flex:1;min-width:0}
 body #app .tr29-toolbar .tr39-watch select{width:100%;max-width:100%;min-height:44px}
 body #app .tr29-count{width:auto!important;margin-left:auto}
 body #app .tr29-empty{padding:22px 12px}
 /* Shared mobile safety: wrapping text never pushes controls off-screen. */
 body #app :is(.bi27-heading,.tk26-heading,.route-heading,.page-heading){gap:10px;flex-wrap:wrap;margin-bottom:12px}
 body #app :is(.bi27-heading,.route-heading,.page-heading)>div{min-width:0;max-width:100%}
 body #app :is(.bi27-heading h1,.route-heading h1,.page-heading h1){font-size:23px;line-height:1.2;overflow-wrap:break-word}
 body #app :is(.bi27-actions,.tk26-heading-actions){gap:6px;flex-wrap:wrap;max-width:100%}
 body #app :is(.bi27-filters,.tk26-filters){gap:8px;padding:10px}
 body #app :is(.bi27,.tk26,.tr29,.route-view) select{min-width:0;max-width:100%}
 body #app :is(.bi27,.tk26,.tr29) input:not([type=checkbox]):not([type=radio]){min-width:0;max-width:100%}
 body #app :is(.product-tags,.product-badges,.approval-tags,.order-tags){display:flex;flex-wrap:wrap;gap:4px;min-width:0;max-width:100%}
 body #app :is(.order-status14759,.approval-table14758,.tk26-chip){max-width:100%;white-space:normal;overflow-wrap:break-word;line-height:1.25}
 body #app :is(.product-price-value,.cart-item-total){min-width:0;font-variant-numeric:tabular-nums}
 body #app .product-price-value strong{white-space:normal;overflow-wrap:anywhere;line-height:1.25}
 body #app .tk26-message-list{padding:10px}
 body #app .tk26-message{max-width:96%;padding:10px}
 body #app .tk40-info{width:32px;height:32px;right:5px;top:6px}
 body #app .tk40-ticket-row .tk26-ticket{padding-right:42px!important}
 body #app .bi27{padding-bottom:16px}
 body #app .bi27-heading{margin-bottom:12px}
 body #app .bi27-heading p{font-size:12px}
 body #app :is([data-quick14762],.home-access-group129 .home-tools){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body #app :is([data-quick14762],.home-access-group129 .home-tools)>.home-tool{height:128px!important;min-height:128px!important;padding:24px 8px 10px!important;gap:5px!important}
 body #app .home-tool:nth-child(n) .home-tool-icon{width:60px!important;height:60px!important}
 body #app .home-tool .home-glyph-3d{width:39px!important;height:39px!important}
}
@media(max-width:359px){body #app #homeKpis{grid-template-columns:1fr!important}}
