/* Calendar (ttc-calendar.js) */
.ta-layout.tcl-layout{max-width:1560px}
.tcl-main{gap:14px!important;flex-basis:520px!important}
.tcl-phonebar{display:none!important}
.tcl-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tcl-nav{display:flex;align-items:center;gap:6px;flex:1 1 360px;min-width:0}
.tcl-nav .ta-btn.sm{height:38px}
.tcl-fwd svg{transform:rotate(180deg)}
#ttc-feed-app .tcl-title{margin:0 0 0 8px;font-size:28px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tcl-title.loading::after{content:'';display:inline-block;width:14px;height:14px;margin-left:10px;border-radius:50%;border:2px solid #3FD2E8;border-right-color:transparent;vertical-align:middle;animation:tcl-spin .8s linear infinite}
@keyframes tcl-spin{to{transform:rotate(360deg)}}
.tcl-head-right{display:flex;align-items:center;gap:10px}
.tcl-views{display:flex;background:#0E191D;border-radius:12px;padding:4px;gap:2px}
#ttc-feed-app .tcl-views button{height:34px;padding:0 14px;border:0;border-radius:9px;background:none;color:#8FA6AD;font:600 14px Inter,sans-serif;cursor:pointer}
#ttc-feed-app .tcl-views button[aria-pressed=true]{background:#1E2F36;color:#E8F1F3}
.tcl-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#ttc-feed-app .tcl-filter{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px;border-radius:16px;border:1px solid #23363D;background:#111D22;color:#C9D8DC!important;font:600 13px Inter,sans-serif;cursor:pointer;white-space:nowrap;text-decoration:none}
.tcl-filter>i{width:10px;height:10px;border-radius:3px;flex-shrink:0}
#ttc-feed-app .tcl-filter[aria-pressed=false]{color:#6F878E!important;background:transparent;border-style:dashed}
.tcl-filter[aria-pressed=false]>i{opacity:.35}
#ttc-feed-app .tcl-filter.add{color:#3FD2E8!important;border-color:#3FD2E833}
.tcl-filter .tf-ic{width:15px;height:15px}
.tcl-warn{display:inline-flex;width:16px;height:16px;border-radius:50%;background:#F2B26B;color:#1A0E02;font-size:11px;align-items:center;justify-content:center}
#ttc-feed-app .tcl-tech{height:32px;border-radius:16px;border:1px solid #23363D;background:#111D22;color:#C9D8DC;font:600 13px Inter,sans-serif;padding:0 10px;margin:0;color-scheme:dark;max-width:240px}
.tcl-body{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.tcl-body.wide{grid-template-columns:minmax(0,1fr)}
.tcl-mainview{min-width:0}

/* Month */
.tcl-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#111D22;border:1px solid #1E2F36;border-radius:16px;overflow:hidden}
.tcl-wd{padding:8px 10px;font-size:12px;font-weight:600;color:#8FA6AD;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid #1E2F36}
.tcl-cell{min-height:118px;padding:6px;border-right:1px solid #1A2A30;border-bottom:1px solid #1A2A30;display:flex;flex-direction:column;gap:4px;min-width:0;cursor:pointer}
.tcl-cell:nth-child(7n){border-right:0}
.tcl-cell.out{background:#0D171B}
.tcl-cell.out .tcl-num{color:#56696F}
.tcl-cell:hover{background:#15242A}
.tcl-cell.on{box-shadow:inset 0 0 0 2px #3FD2E8}
#ttc-feed-app .tcl-num{align-self:flex-start;min-width:28px;height:28px;padding:0 6px;border-radius:14px;border:0;background:none;color:#E8F1F3;font:600 13px Inter,sans-serif;cursor:pointer}
#ttc-feed-app .tcl-today .tcl-num{background:#3FD2E8;color:#062026}
.tcl-chips{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
#ttc-feed-app .tcl-chip{display:flex;align-items:center;gap:5px;min-width:0;padding:3px 7px;border-radius:6px;border:0;background:color-mix(in srgb,var(--c) 16%,transparent);color:#E8F1F3!important;font:500 12px/1.3 Inter,sans-serif;text-align:left;cursor:pointer;text-decoration:none;box-shadow:inset 3px 0 0 var(--c)}
#ttc-feed-app .tcl-chip.all{background:var(--c);color:#06161B!important;font-weight:600;box-shadow:none}
.tcl-chip:hover{filter:brightness(1.18)}
.tcl-chip.done .tcl-chip-title{text-decoration:line-through;opacity:.7}
.tcl-chip.late{outline:1px solid #F28B82}
.tcl-chip-time{flex-shrink:0;color:var(--c);font-weight:700;font-size:11px}
.tcl-chip-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#ttc-feed-app .tcl-more{align-self:flex-start;border:0;background:none;color:#8FA6AD;font:600 12px Inter,sans-serif;padding:2px 6px;cursor:pointer}
.tcl-more:hover{color:#3FD2E8}

/* Week */
.tcl-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.tcl-wcol{background:#111D22;border:1px solid #1E2F36;border-radius:14px;min-height:420px;display:flex;flex-direction:column;min-width:0}
.tcl-wcol.on{border-color:#3FD2E8}
#ttc-feed-app .tcl-whead{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 4px;border:0;border-bottom:1px solid #1E2F36;background:none;color:#8FA6AD;font:600 12px Inter,sans-serif;cursor:pointer;text-transform:uppercase}
.tcl-whead strong{font:700 22px 'Space Grotesk',Inter,sans-serif;color:#E8F1F3;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.tcl-wcol.tcl-today .tcl-whead strong{background:#3FD2E8;color:#062026}
.tcl-wlist{display:flex;flex-direction:column;gap:5px;padding:8px 6px}
.tcl-wlist .tcl-chip{flex-wrap:wrap}
.tcl-wlist .tcl-chip-title{white-space:normal}
.tcl-none{color:#3A4E54;text-align:center}

/* Schedule */
.tcl-schedule{display:flex;flex-direction:column;background:#111D22;border:1px solid #1E2F36;border-radius:16px;overflow:hidden}
.tcl-sday{display:flex;gap:16px;padding:12px 16px;border-top:1px solid #1A2A30}
.tcl-sday:first-child{border-top:0}
.tcl-sday.past{opacity:.62}
.tcl-sday.tcl-today{background:#3FD2E80d}
.tcl-sdate{flex:0 0 64px;display:flex;flex-direction:column;align-items:center}
.tcl-sdate strong{font:700 24px 'Space Grotesk',Inter,sans-serif;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:50%}
.tcl-sday.tcl-today .tcl-sdate strong{background:#3FD2E8;color:#062026}
.tcl-sdate span{font-size:12px;color:#8FA6AD;text-align:center}
.tcl-slist{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tcl-empty{padding:40px 16px!important;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.tcl-empty .tf-ic{width:30px;height:30px;color:#3FD2E8}

/* Rows (day panel and schedule) */
#ttc-feed-app .tcl-row{display:flex;align-items:center;gap:10px;padding:8px;border-radius:10px;border:0;background:none;color:#E8F1F3!important;text-align:left;text-decoration:none;cursor:pointer;width:100%;font:14px Inter,sans-serif;min-width:0}
.tcl-row:hover{background:#15242A}
.tcl-bar{flex:0 0 4px;align-self:stretch;border-radius:2px;background:var(--c)}
.tcl-row-time{flex:0 0 66px;font-size:12px;font-weight:600;color:#8FA6AD}
.tcl-row-text{flex:1;min-width:0;display:flex;flex-direction:column}
.tcl-row-text strong{font-weight:600;overflow-wrap:anywhere}
.tcl-row-text small{font-size:12px;color:#8FA6AD;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tcl-row.done .tcl-row-text strong{text-decoration:line-through;opacity:.7}
.tcl-status{flex-shrink:0;font-size:11px;font-weight:700;border-radius:6px;padding:2px 7px;background:#15242A;color:#8FA6AD}
.tcl-status.s-on-site{background:#F2B26B24;color:#F2B26B}
.tcl-status.s-completed,.tcl-status.s-submitted{background:#56CC8C24;color:#6FDCA0}
.tcl-status.s-on-hold,.tcl-status.late{background:#F28B8224;color:#F28B82}
.tcl-status.s-accepted,.tcl-status.s-assigned{background:#3FD2E824;color:#3FD2E8}

/* Day panel */
.tcl-day{padding:14px!important;display:flex;flex-direction:column;gap:8px;position:sticky;top:84px}
.tcl-day-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:0 4px}
#ttc-feed-app .tcl-h2{margin:2px 0 0;font:700 22px 'Space Grotesk',Inter,sans-serif;color:#E8F1F3}
#ttc-feed-app .tcl-addday{background:#3FD2E8;color:#062026!important;border-radius:50%}
.tcl-dlist{display:flex;flex-direction:column;gap:2px;max-height:calc(100vh - 220px);overflow:auto}
.tcl-free{margin:8px 4px 4px}

/* Dialogs */
#ttc-feed-app dialog.tcl-dlg.wide{width:min(560px,calc(100vw - 32px))}
.tcl-dlg-head{display:flex;align-items:center;gap:10px}
#ttc-feed-app .tcl-dlg-head h2{flex:1;margin:0}
.tcl-dot{width:12px;height:12px;border-radius:4px;flex-shrink:0;display:inline-block}
.tcl-when{margin:0;font-weight:600}
.tcl-sources{display:flex;flex-direction:column;gap:6px}
.tcl-source{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#0E191D}
.tcl-source>span{flex:1;min-width:0;display:flex;flex-direction:column}
.tcl-source small{font-size:12px;color:#8FA6AD}
.tcl-connect{display:flex;flex-direction:column;gap:10px;border-top:1px solid #1E2F36;padding-top:14px}
#ttc-feed-app .tcl-connect h3{margin:0;font:700 15px Inter,sans-serif}
#ttc-feed-app .tcl-dlg input{width:100%;box-sizing:border-box;height:44px;border-radius:12px;border:1px solid #23363D;background:#0E191D;color:#E8F1F3;font:15px Inter,sans-serif;padding:0 12px;margin:0}
.tcl-connect small a{color:#3FD2E8!important}

@media(max-width:1199px){
  .tcl-body{grid-template-columns:minmax(0,1fr) 280px}
  .tcl-cell{min-height:100px}
  .tcl-chip-time{display:none}
}
@media(max-width:1023px){
  .tcl-body,.tcl-body.wide{grid-template-columns:minmax(0,1fr)}
  .tcl-day{position:static}
  .tcl-week{grid-template-columns:repeat(7,minmax(120px,1fr));overflow-x:auto;padding-bottom:6px}
}
@media(max-width:759px){
  .tcl-main{padding:0 12px!important;gap:10px!important}
  .tcl-phonebar{display:flex!important}
  .tcl-head{gap:8px}
  .tcl-nav{flex-basis:100%;order:1}
  .tcl-head-right{flex-basis:100%;justify-content:space-between}
  .tcl-create{display:none}
  .tcl-views{flex:1}
  #ttc-feed-app .tcl-views button{flex:1;padding:0 6px}
  #ttc-feed-app .tcl-title{font-size:22px;flex:1;text-align:right}
  .tcl-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -12px;padding:0 12px 2px}
  .tcl-filters::-webkit-scrollbar{display:none}
  .tcl-filters>*{flex-shrink:0}
  /* Small month with dots */
  .tcl-month.mini{border-radius:14px;padding:6px 4px;row-gap:2px}
  .tcl-month.mini .tcl-wd{text-align:center;border:0;padding:4px 0}
  #ttc-feed-app .tcl-mini{height:48px;border:0;background:none;color:#E8F1F3;font:600 15px Inter,sans-serif;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;padding:3px 0;cursor:pointer}
  .tcl-mini-n{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center}
  .tcl-mini.tcl-today .tcl-mini-n{color:#3FD2E8}
  .tcl-mini.on .tcl-mini-n{background:#E8F1F3;color:#0B1418}
  .tcl-mini.on.tcl-today .tcl-mini-n{background:#3FD2E8;color:#062026}
  .tcl-dots{display:flex;gap:3px;height:6px}
  .tcl-dots i{width:6px;height:6px;border-radius:50%}
  .tcl-day{padding:12px!important;scroll-margin-top:12px}
  .tcl-dlist{max-height:none}
  .tcl-week{grid-template-columns:minmax(0,1fr);overflow:visible}
  .tcl-wcol{min-height:0;flex-direction:row}
  #ttc-feed-app .tcl-whead{flex:0 0 64px;border-bottom:0;border-right:1px solid #1E2F36}
  .tcl-whead strong{font-size:18px;width:34px;height:34px}
  .tcl-wlist{flex:1;min-width:0}
  .tcl-none{display:none}
  .tcl-wlist:has(.tcl-none){min-height:40px}
  .tcl-sday{padding:10px 12px;gap:10px}
  .tcl-sdate{flex-basis:46px}
  .tcl-row-time{flex-basis:58px}
}
