/* Route planner 2.0 (ttc-plans.js) */
.ta-layout.tpl-layout{max-width:1640px}
.tpl-main{gap:0!important;flex-basis:640px!important}
.tpl-split{display:grid;grid-template-columns:minmax(380px,460px) minmax(0,1fr);gap:16px;height:calc(100vh - 112px);min-height:540px}
.tpl-panel{display:flex;flex-direction:column;min-height:0;overflow-y:auto;overscroll-behavior:contain;background:#111D22;border:1px solid #1E2F36;border-radius:16px;scrollbar-width:thin;scrollbar-color:#23363D transparent}
.tpl-mapwrap{min-width:0;min-height:0;border-radius:16px;overflow:hidden;border:1px solid #1E2F36;background:#0E191D}
.tpl-map{height:100%;width:100%}
#ttc-feed-app .tpl-map.leaflet-container{background:#0E191D;font:12px Inter,sans-serif}
.tpl-map .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.6)}
.tpl-map .leaflet-control-attribution{background:#0B1418cc!important;color:#8FA6AD}
.tpl-map .leaflet-control-attribution a{color:#3FD2E8!important}
.tpl-map .leaflet-bar a{background:#111D22;color:#E8F1F3!important;border-color:#23363D}
.tpl-map-empty{height:100%;display:flex;align-items:center;justify-content:center;color:#8FA6AD}

/* Pins: the day's color comes in as --c */
.tpl-pin{display:flex!important;align-items:center;justify-content:center;--c:#3FD2E8}
.tpl-pin span{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font:700 11px Inter,sans-serif;background:#0B1418;border:3px solid var(--c);color:#E8F1F3;box-sizing:border-box;box-shadow:0 3px 10px #000a;transition:transform .15s}
.tpl-pin.on{z-index:900!important}
.tpl-pin.on span{transform:scale(1.3);box-shadow:0 0 0 5px #3FD2E855,0 3px 10px #000a}
.tpl-pin.st-done span{background:#1E4A35;color:#6FDCA0}
.tpl-pin.st-skipped span{opacity:.55}
.tpl-pin.st-failed span{background:#4A1E1E;color:#FF8A8A;border-color:#FF8A8A}
.tpl-pin.start span{background:#F2B26B;border-color:#F2B26B;color:#1A1205;font-size:14px}

/* Head */
.tpl-head{padding:12px 14px 6px;display:flex;flex-direction:column;gap:8px}
.tpl-top{display:flex;align-items:center;gap:4px}
.tpl-top .tf-iconbtn.sm{width:36px;height:36px;flex-shrink:0}
#ttc-feed-app .tpl-name{flex:1;min-width:0;background:transparent;border:1px solid transparent;border-radius:10px;color:#E8F1F3;font:700 20px 'Space Grotesk',Inter,sans-serif;padding:4px 8px;margin:0;height:auto}
#ttc-feed-app .tpl-name:hover:not(:disabled),#ttc-feed-app .tpl-name:focus{border-color:#23363D;background:#0E191D;outline:none}
#ttc-feed-app .tpl-name:disabled{opacity:1}
.tpl-save{font-size:12px;color:#6F878E;white-space:nowrap;padding:0 4px}
.tpl-save.dirty{color:#F2B26B}
.tpl-stats{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:#8FA6AD;align-items:center;padding:0 8px}
.tpl-stats strong{color:#E8F1F3}
.tpl-prog{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#8FA6AD}
.tpl-prog b{width:64px;height:6px;border-radius:3px;background:#1E2F36;overflow:hidden;display:block}
.tpl-prog i{display:block;height:100%;width:0;background:linear-gradient(90deg,#3FD2E8,#6FDCA0);border-radius:3px;transition:width .3s}
.tpl-from{margin:0;padding:0 8px;font-size:13px;color:#F2B26B}
.tpl-crew{display:flex;align-items:center;font-size:12px;color:#8FA6AD;padding:0 8px}
.tpl-crew .tf-av{margin-right:-6px;box-shadow:0 0 0 2px #111D22}
.tpl-crew>span:not(.tf-av){margin-left:14px}
.tpl-invite{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;border-radius:12px;background:#15242A;font-size:14px;border:1px solid #2B4A52}
.tpl-invite span{flex:1 1 200px}
.tpl-invite .ta-btn{margin:0}

/* Toolbar */
.tpl-bar{display:flex;flex-wrap:wrap;gap:6px;padding:4px 14px 10px}
#ttc-feed-app .tpl-bar .ta-btn{margin:0;padding:0 12px;height:38px;font-size:13px!important}
#ttc-feed-app .tpl-bar .ta-btn.pri{margin-left:auto}
.tpl-bar .ta-btn.on{border-color:#3FD2E8;color:#3FD2E8!important}
.ta-btn.good{background:#1E4A35!important;border-color:#2F7A55!important;color:#BFF2D5!important}
.ta-btn.warn{border-color:#7A5A2F!important;color:#F2B26B!important}
.ta-btn.danger,.tdp-link.danger{color:#FF8A8A!important}
.tpl-selbar{flex-basis:100%;display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px 10px;border-radius:12px;background:#15242A;border:1px solid #2B4A52}
.tpl-selbar strong{margin-right:auto;font-size:14px}

/* Day tabs */
.tpl-tabs{display:flex;gap:6px;overflow-x:auto;padding:8px 14px;border-top:1px solid #1E2F36;border-bottom:1px solid #1E2F36;position:sticky;top:0;background:#111D22;z-index:5;scrollbar-width:none;flex-shrink:0}
.tpl-tabs::-webkit-scrollbar{display:none}
.tpl-tab{flex:0 0 auto;display:flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:999px;border:1px solid #23363D;background:#0E191D;color:#B9CCD1;font:600 13px Inter,sans-serif;cursor:pointer;white-space:nowrap}
.tpl-tab:hover{border-color:#3A5660}
.tpl-tab.day::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--c,#3FD2E8)}
.tpl-tab b{font-size:11px;background:#1E2F36;color:#E8F1F3;border-radius:999px;padding:1px 7px;min-width:12px;text-align:center}
.tpl-tab small{font-size:11px;color:#F2B26B;font-weight:700}
.tpl-tab.on{background:#3FD2E8;border-color:#3FD2E8;color:#062026}
.tpl-tab.on b{background:#062026;color:#3FD2E8}
.tpl-tab.on small{color:#062026}
.tpl-tab.on.day::before{background:#062026}

/* Stops */
.tpl-rows{display:flex;flex-direction:column;padding:6px 8px 20px;gap:1px}
.tpl-group{display:flex;align-items:center;gap:10px;padding:14px 8px 6px;background:none;border:0;color:#E8F1F3;font:inherit;cursor:pointer;text-align:left;border-radius:10px}
.tpl-group:hover{background:#15242A}
.tpl-group i{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.tpl-group strong{font-size:14px}
.tpl-group span{color:#8FA6AD;font-size:12px;margin-left:auto}
.tpl-group .tf-ic{width:16px;height:16px;color:#6F878E}
.tpl-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:7px 6px;border-radius:12px;position:relative}
.tpl-row:hover{background:#13232A}
.tpl-row.open{background:#15242A;box-shadow:inset 0 0 0 1px #23363D}
.tpl-row.st-done .tpl-stop>strong,.tpl-row.st-skipped .tpl-stop>strong{color:#8FA6AD}
.tpl-row.st-done .tpl-stop>strong{text-decoration:line-through;text-decoration-color:#56CC8C}
.tpl-grip{cursor:grab;color:#4F6870;font-size:13px;letter-spacing:-3px;padding:10px 4px 10px 2px;touch-action:none;user-select:none;-webkit-user-select:none}
.tpl-row.dragging{opacity:.65;background:#1E2F36}
.tpl-row.drop-above{box-shadow:inset 0 3px 0 #3FD2E8}
.tpl-num{flex:0 0 28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font:700 11px Inter,sans-serif;background:#0B1418;border:2px solid #3FD2E8;color:#E8F1F3;box-sizing:border-box}
.tpl-num.st-done{background:#1E4A35;border-color:#56CC8C;color:#6FDCA0}
.tpl-num.st-skipped{border-color:#6F878E;color:#8FA6AD}
.tpl-num.st-failed{border-color:#FF8A8A;color:#FF8A8A;background:#2A1414}
.tpl-row.late .tpl-num{border-color:#F2B26B}
.tpl-stop{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:2px;background:none;border:0;padding:2px 0;text-align:left;color:#E8F1F3;font:inherit;cursor:pointer}
.tpl-stop>strong{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpl-stop>small{font-size:12px;color:#8FA6AD;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpl-stop>small:empty{display:none}
.tpl-meta{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.tpl-meta em{font-style:normal;font-size:11px;color:#B9CCD1;background:#0E191D;border:1px solid #23363D;border-radius:6px;padding:1px 6px}
.tpl-meta em:first-child{color:#7FE3F2}
.tpl-warn{font-size:11px;color:#F2B26B}
.tpl-note{font-size:12px;color:#B9CCD1;font-style:italic}
.tpl-nav{width:36px!important;height:36px!important;flex-shrink:0}
.tpl-nav .tf-ic{width:18px!important;height:18px!important;color:#3FD2E8}
.tpl-pick{width:20px;height:20px;accent-color:#3FD2E8;margin:0 4px}
.tpl-detail{flex-basis:100%;display:flex;flex-direction:column;gap:12px;padding:6px 4px 6px 36px;cursor:auto}
.tpl-actions{display:flex;flex-wrap:wrap;gap:6px}
#ttc-feed-app .tpl-actions .ta-btn{margin:0;height:36px;padding:0 12px;font-size:13px!important}
.tpl-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tpl-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tpl-f{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#8FA6AD;margin:0}
#ttc-feed-app .tpl-f input:not([type=checkbox]),#ttc-feed-app .tpl-f textarea,#ttc-feed-app .tpl-dlg input:not([type=checkbox]):not([type=file]),#ttc-feed-app .tpl-dlg select,#ttc-feed-app .tpl-dlg textarea{width:100%;box-sizing:border-box;min-height:40px;border-radius:10px;border:1px solid #23363D;background:#0E191D;color:#E8F1F3;font:14px Inter,sans-serif;padding:8px 10px;margin:0;color-scheme:dark}
#ttc-feed-app .tpl-f input:disabled,#ttc-feed-app .tpl-f textarea:disabled{opacity:.7}
#ttc-feed-app .tpl-dlg textarea{resize:vertical;line-height:1.4}
.tpl-check,.tpl-f.tpl-check{flex-direction:row;align-items:center;gap:10px;font-size:14px;color:#E8F1F3;cursor:pointer}
.tpl-check input{width:18px;height:18px;accent-color:#3FD2E8;margin:0;flex-shrink:0}
.tpl-grid .tpl-check{grid-column:1/-1}
.tpl-detail-foot{display:flex;justify-content:flex-end}
.tpl-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:36px 20px}
.tpl-empty h3{margin:0;font:700 18px 'Space Grotesk',Inter,sans-serif}
.tpl-empty p{margin:0 0 8px;color:#8FA6AD;font-size:14px;max-width:360px}
.tpl-empty .ta-btn{margin:0}
.tpl-empty-art{font-size:44px;line-height:1}

/* Dialogs (bottom sheets on phones) */
.tpl-dlg{display:flex;flex-direction:column;gap:12px;max-height:min(86vh,820px);overflow-y:auto}
.tpl-dlg:not([open]){display:none}
#ttc-feed-app dialog.tpl-dlg.wide{width:min(640px,calc(100vw - 32px))}
.tpl-dlg-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tpl-dlg .ta-dim{margin:0;font-size:13px;color:#8FA6AD}
.tpl-dlg .ta-field{margin:0}
.tpl-dlg .ta-dialog-actions{position:sticky;bottom:-20px;background:#111D22;padding:10px 0 0;margin-top:2px}
.tpl-dlg .ta-dialog-actions .ta-btn{margin:0}
.tpl-preview{margin:0;padding:10px 12px;border-radius:10px;background:#0E191D;border:1px solid #1E2F36;font-size:14px;color:#B9CCD1}
.tpl-preview strong{color:#E8F1F3}
.tpl-addtabs{display:flex;flex-wrap:wrap;gap:6px}
.tpl-add{display:flex;flex-direction:column;gap:12px}
.tpl-drop{display:flex;flex-direction:column;align-items:center;gap:6px;padding:26px 16px;border:2px dashed #2B4A52;border-radius:14px;text-align:center;cursor:pointer;background:#0E191D;transition:border-color .15s,background .15s}
.tpl-drop:hover,.tpl-drop.over{border-color:#3FD2E8;background:#11252B}
.tpl-drop .tf-ic{width:30px;height:30px;color:#3FD2E8}
.tpl-drop strong{font-size:15px}
.tpl-drop span{font-size:12px;color:#8FA6AD;max-width:380px}
.tpl-drop input{position:absolute;width:1px;height:1px;opacity:0}
.tpl-cols summary{cursor:pointer;font-size:13px;color:#3FD2E8;padding:4px 0}
.tpl-cols-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}
.tpl-map-col{display:flex;flex-direction:column;gap:3px;font-size:11px;color:#8FA6AD}
#ttc-feed-app .tpl-map-col select{min-height:34px;padding:4px 8px;font-size:13px}
.tpl-sample{display:flex;flex-direction:column;border:1px solid #1E2F36;border-radius:10px;overflow:hidden}
.tpl-sample div{display:flex;flex-direction:column;padding:8px 10px;border-top:1px solid #1E2F36;font-size:13px}
.tpl-sample div:first-child{border-top:0}
.tpl-sample small{color:#8FA6AD}
.tpl-results{display:flex;flex-direction:column;gap:4px}
.tpl-result{display:flex;align-items:center;gap:10px;padding:10px;border-radius:10px;background:#0E191D;border:1px solid #1E2F36;color:#E8F1F3;font:14px Inter,sans-serif;text-align:left;cursor:pointer}
.tpl-result:hover{border-color:#3FD2E8}
.tpl-result .tf-ic{width:18px;height:18px;color:#3FD2E8;flex-shrink:0}
.tpl-joblist{display:flex;flex-direction:column;gap:2px;max-height:46vh;overflow-y:auto}
.tpl-job{display:flex;align-items:center;gap:10px;padding:8px;border-radius:10px;cursor:pointer}
.tpl-job:hover{background:#15242A}
.tpl-job input{width:18px;height:18px;accent-color:#3FD2E8;margin:0;flex-shrink:0}
.tpl-job>span{display:flex;flex-direction:column;min-width:0;font-size:14px}
.tpl-job small{color:#8FA6AD;font-size:12px}
.tpl-modes{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}
.tpl-mode{display:flex;flex-direction:column;gap:4px;text-align:left;padding:12px;border-radius:12px;border:1px solid #23363D;background:#0E191D;color:#E8F1F3;font:inherit;cursor:pointer}
.tpl-mode strong{font-size:14px}
.tpl-mode small{font-size:12px;color:#8FA6AD}
.tpl-mode.on{border-color:#3FD2E8;background:#11252B;box-shadow:inset 0 0 0 1px #3FD2E8}
.tpl-chips{display:flex;flex-wrap:wrap;gap:6px}
.tpl-chips:empty{display:none}
.tpl-chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px 0 4px;border-radius:999px;border:1px solid #2B4A52;background:#15242A;color:#E8F1F3;font:600 13px Inter,sans-serif;cursor:pointer}
.tpl-people{display:flex;flex-direction:column;gap:2px;max-height:34vh;overflow-y:auto}
.tpl-person{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:10px;background:none;border:0;color:#E8F1F3;font:14px Inter,sans-serif;text-align:left;cursor:pointer}
.tpl-person:not(.static):hover{background:#15242A}
.tpl-person>span:not(.tf-av){flex:1;min-width:0}
.tpl-person .tf-av,.tpl-chip .tf-av,.tpl-crew .tf-av{flex:0 0 auto}
.tpl-person b{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#1E2F36;color:#3FD2E8}
.tpl-person.on b{background:#3FD2E8;color:#062026}
.tpl-person.static{cursor:default}
.tpl-members h3{margin:6px 0 4px;font-size:13px;color:#8FA6AD;font-weight:600}

/* Little menu and toast */
.tpl-pop{position:fixed;z-index:1000;min-width:230px;max-width:calc(100vw - 16px);background:#111D22;border:1px solid #23363D;border-radius:14px;padding:6px;display:flex;flex-direction:column;box-shadow:0 18px 48px #000c;animation:tpl-pop .14s ease-out}
.tpl-pop button{background:none;border:0;border-radius:10px;padding:10px 12px;text-align:left;color:#E8F1F3;font:500 14px Inter,sans-serif;cursor:pointer}
.tpl-pop button:hover,.tpl-pop button:focus-visible{background:#1E2F36;outline:none}
.tpl-pop button.danger{color:#FF8A8A}
@keyframes tpl-pop{from{opacity:0;transform:translateY(-4px) scale(.98)}}
.tpl-toast{position:fixed;left:50%;bottom:calc(104px + env(safe-area-inset-bottom));transform:translate(-50%,16px);opacity:0;z-index:1100;max-width:min(520px,calc(100vw - 32px));padding:12px 16px;border-radius:12px;background:#E8F1F3;color:#062026;font:600 14px Inter,sans-serif;box-shadow:0 12px 32px #000a;transition:opacity .2s,transform .2s;pointer-events:none}
.tpl-toast.in{opacity:1;transform:translate(-50%,0)}

/* The list of routes */
.tpl-list{gap:22px!important}
.tpl-list-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tpl-list-head .ta-dim{margin:4px 0 0;color:#8FA6AD;font-size:14px}
.tpl-list-head .tdp-tools{display:flex;gap:8px}
.tpl-list-head .ta-btn{margin:0}
#ttc-feed-app .tpl-h2{font:700 16px 'Space Grotesk',Inter,sans-serif;margin:0 0 10px;color:#E8F1F3}
.tpl-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.tpl-card{display:flex;flex-direction:column;gap:6px;padding:14px 16px;text-decoration:none;color:#E8F1F3!important;transition:border-color .15s,transform .15s}
a.tpl-card:hover{border-color:#3A5660;transform:translateY(-1px)}
.tpl-card-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tpl-card-top strong{font-size:15px;margin-right:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.tpl-card small{font-size:12px;color:#8FA6AD}
.tpl-card .tpl-prog b{flex:1;width:auto}
.tpl-card .tpl-prog{width:100%}
.tpl-tag{font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:#1E2F36;color:#B9CCD1}
.tpl-tag.office{background:#3A2A12;color:#F2B26B}
.tpl-card.invite{border-color:#2B4A52;background:#11252B}
.tpl-card-btns{display:flex;gap:8px;margin-top:4px}
.tpl-card-btns .ta-btn{margin:0}
.tpl-list>.tpl-empty{padding:40px 20px}

/* Driving a day */
.tpl-go{max-width:640px;margin:0 auto!important;gap:14px!important;width:100%}
.tpl-go-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tpl-go-top>div{display:flex;flex-direction:column;flex:1;min-width:0}
.tpl-go-top strong{font-size:16px}
.tpl-go-top small{font-size:13px;color:#8FA6AD}
.tpl-go-bar{flex-basis:100%;height:6px;border-radius:3px;background:#1E2F36;overflow:hidden}
.tpl-go-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#3FD2E8,#6FDCA0);transition:width .4s}
.tpl-go-card{display:flex;flex-direction:column;gap:12px;padding:20px;border-radius:20px;background:linear-gradient(160deg,#13262D,#0F1B20);border:1px solid #23363D}
.tpl-go-card.done{align-items:center;text-align:center}
.tpl-go-card.done .ta-btn{margin:0}
.tpl-go-num{font:700 12px Inter,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#3FD2E8}
#ttc-feed-app .tpl-go-card h1{margin:0;font:700 26px/1.15 'Space Grotesk',Inter,sans-serif;color:#E8F1F3}
.tpl-go-addr{margin:0;font-size:15px;color:#B9CCD1}
.tpl-go-addr:empty{display:none}
.tpl-meta.big em{font-size:13px;padding:3px 8px}
.tpl-go-notes{margin:0;font-size:14px;color:#B9CCD1;background:#0E191D;border-radius:10px;padding:10px 12px}
#ttc-feed-app .tpl-go-nav{height:56px;justify-content:center;font-size:16px!important;margin:0}
.tpl-go-btns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#ttc-feed-app .tpl-go-btns .ta-btn{margin:0;justify-content:center;height:50px}
.tpl-go-next{display:flex;flex-direction:column;gap:6px}
#ttc-feed-app .tpl-go-next h3{margin:0;font-size:13px;color:#8FA6AD;font-weight:600}
.tpl-go-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;background:#111D22;border:1px solid #1E2F36}
.tpl-go-row>span:last-child{display:flex;flex-direction:column;min-width:0}
.tpl-go-row strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpl-go-row small{font-size:12px;color:#8FA6AD}

@media(max-width:1099px){
  /* Phones and tablets: name and tools, then the map, then the day tabs (they stick) and the list. */
  .tpl-split{display:flex;flex-direction:column;height:auto;min-height:0;gap:0}
  .tpl-panel{display:contents}
  .tpl-head{order:1;padding:4px 4px 6px}
  .tpl-bar{order:2;padding:0 4px 10px}
  .tpl-mapwrap{order:3;height:36vh;min-height:240px}
  .tpl-tabs{order:4;top:0;background:#060C10;border-top:0;margin:0 -10px;padding:10px 14px}
  .tpl-rows{order:5;padding:4px 0 16px}
}
@media(max-width:759px){
  .tpl-main,.tpl-list,.tpl-go{padding:0 10px!important}
  .tpl-split{gap:10px}
  .tpl-mapwrap{height:34vh;min-height:220px;border-radius:14px}
  .tpl-head{padding:10px 0 6px}
  #ttc-feed-app .tpl-name{font-size:19px}
  .tpl-bar{padding:0 0 10px;gap:6px}
  #ttc-feed-app .tpl-bar .ta-btn{flex:1 1 auto;justify-content:center;padding:0 8px}
  #ttc-feed-app .tpl-bar .ta-btn.pri{flex-basis:100%}
  .tpl-tabs{padding:10px}
  .tpl-detail{padding-left:4px}
  .tpl-grid{grid-template-columns:1fr 1fr}
  .tpl-cols-grid{grid-template-columns:1fr 1fr}
  #ttc-feed-app dialog.tpl-dlg,#ttc-feed-app dialog.tpl-dlg.wide{margin:auto 0 0;width:100vw!important;max-width:100vw!important;border-radius:20px 20px 0 0;border-bottom:0;max-height:90vh;padding:16px 16px calc(16px + env(safe-area-inset-bottom));box-sizing:border-box;animation:tpl-up .2s ease-out}
  .tpl-dlg .ta-dialog-actions{bottom:calc(-16px - env(safe-area-inset-bottom));padding-bottom:4px}
  .tpl-dlg .ta-dialog-actions .ta-btn{flex:1;justify-content:center}
  .tpl-list-head .tdp-tools{width:100%}
  .tpl-list-head .tdp-tools .ta-btn{flex:1;justify-content:center}
  #ttc-feed-app .tpl-list .ta-h1{font-size:24px}
  .tpl-cards{grid-template-columns:1fr}
  #ttc-feed-app .tpl-go-card h1{font-size:22px}
  .tpl-go-card{padding:16px}
}
@keyframes tpl-up{from{transform:translateY(30px);opacity:.6}}
@media(max-width:380px){
  .tpl-grid,.tpl-two{grid-template-columns:1fr}
  #ttc-feed-app .tpl-bar .ta-btn{padding:0 9px}
}
body.ttc-calm .tpl-pop,body.ttc-calm .tpl-dlg{animation:none}
@media (prefers-reduced-motion:reduce){.tpl-pop,.tpl-dlg{animation:none}}
