/* Trading calendar: one month of daily results (public provider page). */
.tc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tc-title { color: #fff; font-weight: 700; font-size: 1.05rem; }
.tc-sub { color: #8b8b98; font-size: 12px; margin-top: 2px; }
.tc-nav { display: flex; align-items: center; gap: 6px; }
.tc-nav button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #e8e8ec; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); cursor: pointer; transition: border-color .15s, background .15s; }
.tc-nav button:hover:not(:disabled) { border-color: rgba(245,196,81,.6); background: rgba(245,196,81,.08); }
.tc-nav button:disabled { opacity: .3; cursor: default; }
.tc-nav select { height: 36px; padding: 0 30px 0 12px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 14px; background: #101014 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f5c451' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center; border: 1px solid rgba(255,255,255,.1); -webkit-appearance: none; appearance: none; cursor: pointer; }

.tc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.tc-tile { padding: 11px 13px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); min-width: 0; }
.tc-tile.main { background: linear-gradient(150deg, rgba(245,196,81,.13), rgba(245,196,81,.02)); border-color: rgba(245,196,81,.3); }
.tc-tile .l { color: #8b8b98; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.tc-tile .v { color: #fff; font-size: 1.2rem; font-weight: 800; margin-top: 3px; line-height: 1.2; }
.tc-tile .s { color: #8b8b98; font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-up { color: #4ade80 !important; } .tc-dn { color: #f87171 !important; }

.tc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) 76px; gap: 6px; }
.tc-hd { color: #8b8b98; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding-bottom: 3px; }
.tc-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 82px; padding: 16px 2px 6px; border-radius: 12px; font: inherit; color: #6b6b78;
  background: rgba(255,255,255,.018); border: 1px solid rgba(255,255,255,.05); transition: transform .15s, box-shadow .15s, border-color .15s; animation: tc-in .32s both; }
.tc-day.out { background: none; border-color: transparent; animation: none; }
.tc-day .d { position: absolute; top: 6px; left: 8px; font-size: 11px; font-weight: 600; color: #8b8b98; }
.tc-day .n { font-size: .95rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.tc-day .n i { font-style: normal; display: none; }
.tc-day .n u { text-decoration: none; }
.tc-day .t { font-size: 10.5px; margin-top: 2px; color: rgba(255,255,255,.62); white-space: nowrap; }
button.tc-day { cursor: pointer; }
button.tc-day:hover, button.tc-day:focus-visible, button.tc-day.sel { transform: translateY(-2px); outline: none; border-color: #f5c451; box-shadow: 0 8px 22px rgba(0,0,0,.45), 0 0 0 1px rgba(245,196,81,.55); }
.tc-day.today .d { color: #1a1206; background: #f5c451; border-radius: 6px; padding: 0 5px; left: 5px; top: 5px; font-weight: 800; }
.tc-day.u .d, .tc-day.l .d { color: rgba(255,255,255,.72); }
.tc-day.today.u .d, .tc-day.today.l .d { color: #1a1206; }
.tc-day.u { border-color: rgba(74,222,128,.28); } .tc-day.l { border-color: rgba(248,113,113,.28); }
.tc-day.u .n { color: #bbf7d0; } .tc-day.l .n { color: #fecaca; }
.tc-u1 { background: linear-gradient(160deg, rgba(34,197,94,.13), rgba(34,197,94,.06)); } .tc-u2 { background: linear-gradient(160deg, rgba(34,197,94,.24), rgba(34,197,94,.11)); }
.tc-u3 { background: linear-gradient(160deg, rgba(34,197,94,.38), rgba(34,197,94,.18)); } .tc-u4 { background: linear-gradient(160deg, rgba(34,197,94,.56), rgba(34,197,94,.28)); }
.tc-l1 { background: linear-gradient(160deg, rgba(239,68,68,.13), rgba(239,68,68,.06)); } .tc-l2 { background: linear-gradient(160deg, rgba(239,68,68,.24), rgba(239,68,68,.11)); }
.tc-l3 { background: linear-gradient(160deg, rgba(239,68,68,.38), rgba(239,68,68,.18)); } .tc-l4 { background: linear-gradient(160deg, rgba(239,68,68,.56), rgba(239,68,68,.28)); }
.tc-wk { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: rgba(245,196,81,.04); border: 1px dashed rgba(245,196,81,.2); font-size: 10.5px; color: #8b8b98; text-align: center; padding: 4px 2px; }
.tc-wk.none { background: none; border-color: transparent; color: #3f3f49; }
.tc-wk b { font-size: .84rem; font-weight: 800; }

.tc-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #0e0e12; border: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: #a9a9b2; min-height: 48px; }
.tc-detail b { color: #fff; font-weight: 700; }
.tc-detail .big { font-size: 1.02rem; font-weight: 800; }

.tc-year { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; margin-top: 12px; }
.tc-m { padding: 6px 0; border-radius: 8px; text-align: center; font: inherit; font-size: 10.5px; color: #6b6b78; background: rgba(255,255,255,.025); border: 1px solid transparent; cursor: pointer; transition: border-color .15s; }
.tc-m:disabled { cursor: default; opacity: .55; }
.tc-m:hover:not(:disabled), .tc-m.on { border-color: #f5c451; }
.tc-m b { display: block; font-size: 10.5px; font-weight: 700; margin-top: 1px; color: #6b6b78; }
.tc-m.up { background: rgba(34,197,94,.12); color: #d6d6dd; } .tc-m.up b { color: #4ade80; }
.tc-m.dn { background: rgba(239,68,68,.12); color: #d6d6dd; } .tc-m.dn b { color: #f87171; }

.tc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; color: #6b6b78; font-size: 11px; }
.tc-legend { display: inline-flex; align-items: center; gap: 3px; color: #8b8b98; }
.tc-legend i { width: 15px; height: 11px; border-radius: 3px; display: inline-block; }
.tc-legend span { margin: 0 3px; }
.tc-empty { grid-column: 1 / -1; text-align: center; color: #6b6b78; font-size: 12px; padding: 4px 0 8px; }
@keyframes tc-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tc-day { animation: none; transition: none; } }
@media (max-width: 760px) {
  .tc-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .tc-wk, .tc-hd.wk { display: none; }
  .tc-day { min-height: 54px; padding: 15px 0 3px; border-radius: 9px; }
  .tc-day .d { top: 3px; left: 5px; font-size: 10px; }
  .tc-day.today .d { left: 3px; top: 2px; padding: 0 3px; }
  .tc-day .n { font-size: 10.5px; letter-spacing: -.03em; }
  .tc-day .n u { display: none; }
  .tc-day .n i { display: inline; }
  .tc-day .t { display: none; }
  .tc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-year { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
