/* Phone layout, including installed touch devices reporting a wider viewport. */
@media (max-width:768px), (pointer:coarse) and (max-device-width:600px) {
 html{font-size:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 body{margin:0;min-width:0}
 #root{min-width:0;overflow-wrap:break-word}
 [data-t360-app-header]{padding-top:env(safe-area-inset-top,0px)}
 [data-t360-app-header] [data-t360-main-header]{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;height:auto!important;min-height:60px;padding:12px 16px!important}
 [data-t360-app-header] [data-t360-main-header]>div:first-child{grid-column:1;grid-row:1;min-width:0}
 [data-t360-app-header] [data-t360-main-header]>div:first-child>span{display:none!important}
 [data-t360-app-header] [data-t360-main-header]>#t360-logout{grid-column:2;grid-row:1;position:static!important;justify-self:end;padding:3px!important;gap:0!important;box-shadow:none!important}
 [data-t360-app-header] #t360-logout>span{display:none!important}
 [data-t360-app-header] #t360-logout>button{min-height:40px;padding:9px 12px!important;font-size:13px!important}
 [data-t360-app-header] [data-t360-panel-buttons]{display:none!important}
 [data-t360-app-header] #t360-mobile-panel-select{display:block!important;grid-column:1 / -1;grid-row:2;width:100%;min-width:0;box-sizing:border-box;min-height:46px;padding:10px 14px;border:1px solid #3a3740;border-radius:14px;background:#211f25;color:#fff;font:600 16px Inter,Arial,sans-serif}
 [data-t360-plan-toggle]{display:flex!important;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;margin:0 0 10px;padding:11px 14px;box-sizing:border-box;text-align:left;border:1px solid #302a32;border-radius:15px;background:#171517;color:#f4f4f5;font:600 13px/1.35 Inter,Arial,sans-serif}
 [data-t360-plan-toggle]>:last-child{font-size:18px;flex:none}
 [data-t360-operations-header]{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;margin-bottom:14px!important}
 [data-t360-operations-header]>h3{font-size:18px!important;line-height:1.25!important;margin:0!important}
 [data-t360-operation-filters]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;min-width:0!important}
 [data-t360-operation-filters]>input{grid-column:1/-1;width:100%!important;max-width:none!important;min-width:0!important;height:44px!important;box-sizing:border-box}
 [data-t360-operation-filters]>select{width:100%!important;min-width:0!important;height:44px!important;padding:0 10px!important;box-sizing:border-box;font-size:12px!important}
 [data-t360-operation-filters]>select:nth-of-type(3){grid-column:1/-1}
 [data-t360-operation-filters]>button,[data-t360-operation-filters]>span{width:100%!important;min-width:0!important;min-height:42px!important;box-sizing:border-box;justify-content:center!important;text-align:center;font-size:12px!important;padding-left:8px!important;padding-right:8px!important}
 [data-t360-operation-filters]>button{white-space:nowrap!important}
 [data-t360-agency-mobile]{padding:20px 16px calc(88px + env(safe-area-inset-bottom,0px))!important;min-width:0}
 [data-t360-agency-mobile] h1{font-size:26px!important;line-height:1.2}
 [data-t360-agency-mobile]>div:first-child{gap:18px!important;margin-bottom:22px!important}
 [data-t360-agency-mobile]>div:first-child>div:last-child{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important}
 [data-t360-agency-mobile]>div:first-child>div:last-child>div{padding:14px!important;border-radius:16px!important}
 [data-t360-agency-mobile]>div:first-child>div:last-child>div>div:last-child{font-size:13px!important}
 [data-t360-agency-toolbar]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:10px!important;margin-bottom:18px!important}
 [data-t360-agency-toolbar]>div{display:contents!important}
 [data-t360-agency-toolbar]>div>div{grid-column:1 / -1;width:100%!important;min-width:0!important;max-width:none!important}
 [data-t360-agency-toolbar] input,[data-t360-agency-toolbar] select,[data-t360-agency-toolbar] button{box-sizing:border-box;width:100%!important;max-width:100%;min-width:0!important;min-height:46px!important;height:auto!important;font-size:14px!important;line-height:1.3;padding-top:11px!important;padding-bottom:11px!important;white-space:normal}
 [data-t360-agency-toolbar] input{font-size:16px!important}
 [data-t360-agency-toolbar]>button{grid-column:1 / -1}
 [data-t360-business-list]>summary{padding:14px!important;font-size:15px!important}
 [data-t360-business-list] [data-t360-agency-summary]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;font-size:13px!important}
 [data-t360-compact-business]{padding:14px!important;gap:14px!important}
 [data-t360-compact-business] button{min-width:42px;min-height:42px}
 [data-t360-compact-business] .t360-compact-footer{align-items:flex-start!important;gap:12px!important}
 [data-t360-compact-business] .t360-compact-footer>div{gap:8px!important}
 [data-t360-compact-business] .t360-compact-capacity{font-size:13px;line-height:1.5}
 [data-t360-app-header]~div input:not([type=checkbox]):not([type=radio]),[data-t360-app-header]~div textarea{font-size:16px}
 #t360-reminder-settings>form,#t360-reminder-preview>div{box-sizing:border-box;max-height:calc(100dvh - 24px)!important;width:100%!important;padding:18px!important}
 #t360-reminder-settings{padding:12px!important}
 #t360-reminder-settings label,#t360-reminder-settings p{line-height:1.55}
 @media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
}
/* Tablet layout for iPad in landscape and similar touch screens. */
@media (min-width:769px) and (max-width:1024px) {
 [data-t360-app-header] [data-t360-main-header]>div:first-child>span{display:none!important}
 [data-t360-plan-toggle]{display:flex!important;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;margin:0 0 10px;padding:11px 14px;box-sizing:border-box;text-align:left;border:1px solid #302a32;border-radius:15px;background:#171517;color:#f4f4f5;font:600 13px/1.35 Inter,Arial,sans-serif}
 [data-t360-plan-toggle]>:last-child{font-size:18px;flex:none}
 [data-t360-operations-header]{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;margin-bottom:14px!important}
 [data-t360-operations-header]>h3{font-size:18px!important;line-height:1.25!important;margin:0!important}
 [data-t360-operation-filters]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;min-width:0!important}
 [data-t360-operation-filters]>input{grid-column:1/-1;width:100%!important;max-width:none!important;min-width:0!important;height:44px!important;box-sizing:border-box}
 [data-t360-operation-filters]>select{width:100%!important;min-width:0!important;height:44px!important;padding:0 10px!important;box-sizing:border-box;font-size:12px!important}
 [data-t360-operation-filters]>select:nth-of-type(3){grid-column:1/-1}
 [data-t360-operation-filters]>button,[data-t360-operation-filters]>span{width:100%!important;min-width:0!important;min-height:42px!important;box-sizing:border-box;justify-content:center!important;text-align:center;font-size:12px!important;padding-left:8px!important;padding-right:8px!important}
 [data-t360-operation-filters]>button{white-space:nowrap!important}
}
/* Mobile filter accordion: the operation heading and cards stay visible. */
@media (max-width:768px) {
 [data-t360-operations-header]{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;margin-bottom:14px!important}
 [data-t360-operations-header]>h3{grid-column:1;grid-row:1;font-size:18px!important;line-height:1.25!important;margin:0!important}
 [data-t360-filters-toggle]{display:flex!important;grid-column:2;grid-row:1;align-items:center;justify-content:space-between;gap:10px;min-height:40px;padding:8px 11px;box-sizing:border-box;border:1px solid #302a32;border-radius:13px;background:#171517;color:#f4f4f5;font:600 12px/1.25 Inter,Arial,sans-serif;white-space:nowrap}
 [data-t360-filters-toggle]>:last-child{font-size:16px;flex:none}
 [data-t360-operation-filters]{grid-column:1/-1;grid-row:2;width:100%!important}
}
@media (min-width:769px) {
 [data-t360-filters-toggle]{display:none!important}
}
/* Keep the active operations count on one line beside the filter control. */
@media (max-width:768px) {
 [data-t360-operations-header]{grid-template-columns:minmax(0,1fr) auto!important;column-gap:7px!important}
 [data-t360-operations-header]>h3{min-width:0!important;white-space:nowrap!important;font-size:clamp(13px,3.8vw,16px)!important;letter-spacing:-.025em!important}
 [data-t360-filters-toggle]{width:auto!important;min-width:0!important;min-height:38px!important;padding:7px 9px!important;gap:7px!important;font-size:11px!important}
}
