.tms { display:flex; box-sizing:border-box; height:96px; margin:10px 4px 4px; border:1px solid var(--colour-line-soft, #f0f2f5); border-radius:12px; background:var(--colour-surface, #ffffff); box-shadow:0 2px 7px rgba(27,41,54,.08); overflow:hidden; color:var(--colour-heading, #22282e); line-height:1.25; text-align:left; }
.tms a, .tml a.tml-chip { text-decoration:none!important; }
.tms-card { flex:1 1 auto; min-width:0; display:flex; color:var(--colour-heading, #22282e)!important; }
.tms-case { position:relative; flex:none; display:grid; place-items:center; width:96px; overflow:hidden; background:radial-gradient(circle at 50% 46%, var(--colour-surface, #ffffff) 0 24%, var(--tmw1) 48%, var(--tmw2) 100%); }
.tms-rays { position:absolute; left:50%; top:46%; width:220px; height:220px; margin:-110px 0 0 -110px; border-radius:50%; background:repeating-conic-gradient(rgba(255,255,255,.75) 0 8deg, rgba(255,255,255,0) 8deg 22deg); }
.tms-tile { position:relative; z-index:1; display:grid; place-items:center; box-sizing:border-box; width:64px; height:64px; margin-top:-10px; border:1px solid var(--colour-line, #e8e8e8); border-radius:10px; background:var(--colour-surface, #ffffff); }
.tms-dsc { display:inline-flex; flex:none; width:20px; height:20px; border-radius:50%; overflow:hidden; }
.tms-dsc img { display:block; width:100%; height:100%; max-width:none; border:0; border-radius:0; }
.tms-tile .tms-dsc { width:54px; height:54px; }
.tml-normal { background:var(--colour-section-bg, #e8e8e8); }
.tms-badge { position:absolute; z-index:2; left:50%; bottom:6px; transform:translateX(-50%); padding:1px 7px; border-radius:6px; background:var(--tmi); color:var(--colour-text-on-accent, #ffffff); font-weight:700; white-space:nowrap; }
.tms-main { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:2px; padding:0 10px 0 14px; }
.tms-kick { letter-spacing:.05em; text-transform:uppercase; font-weight:700; white-space:nowrap; color:var(--tmi); }
.tms-title, .tms-line { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tms-title { color:var(--colour-heading, #22282e); }
.tms-line { color:var(--colour-btn-glass-text, #46515b); }
.tms-minis { display:flex; align-items:center; gap:5px; margin-top:5px; }
.tms-mini { display:grid; place-items:center; flex:none; box-sizing:border-box; width:30px; height:30px; border:1px solid var(--colour-line, #e8e8e8); border-radius:8px; background:var(--colour-surface, #ffffff); overflow:hidden; }
.tms-mini .itempic { --pic:26px; min-height:0; }
.tms-side { flex:none; display:flex; flex-direction:column; justify-content:center; gap:5px; box-sizing:border-box; width:214px; padding:8px 12px; border-left:1px solid var(--colour-line-soft, #f0f2f5); }
.tms-side > .tms-kick { color:var(--colour-text-slate, #5b6675); }
.tms-ns { display:flex; flex-direction:column; gap:5px; }
.tms-n { display:flex; align-items:center; gap:6px; min-width:0; }
.tms-n b { flex:1 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tms-n i { font-style:normal; font-weight:700; white-space:nowrap; color:var(--colour-accent-alt-strong, #255c95); }

.tml { display:flex; flex-direction:column; gap:10px; box-sizing:border-box; margin:10px 4px; padding:10px; border:1px solid var(--colour-line-soft, #f0f2f5); border-radius:12px; background:var(--colour-surface, #ffffff); box-shadow:0 2px 7px rgba(27,41,54,.08); color:var(--colour-heading, #22282e); line-height:1.25; text-align:left; }
.tml-head { display:flex; align-items:center; gap:12px; min-width:0; }
.tml-head .tms-case { width:88px; height:88px; border-radius:10px; }
.tml-head .tms-tile { margin-top:0; }
.tml-ht { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:3px; }
.tml-ht b { color:var(--colour-heading, #22282e); }
.tml-end { flex:none; }
.tml-chips { display:flex; gap:6px; overflow-x:auto; padding-bottom:4px; scrollbar-width:thin; }
.tml-chip { flex:none; display:inline-flex; align-items:center; gap:6px; padding:3px 10px 3px 3px; border:1.5px solid var(--colour-line, #e8e8e8); border-radius:999px; background:var(--colour-surface, #ffffff); color:var(--colour-text, #333333)!important; font-weight:800; white-space:nowrap; }
.tml-chip .tms-dsc { width:24px; height:24px; }
.tml-chip.on { border-color:var(--colour-accent-alt, #2f6fb0); background:var(--colour-accent-alt, #2f6fb0); color:var(--colour-text-on-accent, #ffffff)!important; }
.tml-count { text-align:center; padding:6px 0; color:var(--colour-text, #333333); }

@media (min-width:601px) and (max-width:1002px) {
	.tms { height:88px; }
	.tms-case { width:88px; }
	.tms-mini:nth-child(n+5) { display:none; }
	.tms-side { width:154px; }
	.tms-ns { flex-direction:row; gap:10px; }
	.tms-n { flex-direction:column; gap:3px; min-width:34px; }
	.tms-n b { display:none; }
	.tms-n .tms-dsc { width:30px; height:30px; }
}

@media (max-width:600px) {
	.tms { flex-direction:column; height:auto; border:0; border-radius:0; background:none; box-shadow:none; overflow:visible; }
	.tms-card { height:76px; border:1px solid var(--colour-line-soft, #f0f2f5); border-radius:12px; background:var(--colour-surface, #ffffff); box-shadow:0 2px 7px rgba(27,41,54,.08); overflow:hidden; }
	.tms-case { width:76px; }
	.tms-tile { width:52px; height:52px; }
	.tms-tile .tms-dsc { width:44px; height:44px; }
	.tms-minis, .tms-range, .tms-side > .tms-kick { display:none; }
	.tms-side { width:auto; padding:6px 0 0; border:0; }
	.tms-ns { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:6px; }
	.tms-n { display:grid; grid-template-columns:24px minmax(0, 1fr); column-gap:5px; align-items:center; padding:5px 6px; border-radius:10px; background:var(--colour-line-soft, #f0f2f5); }
	.tms-n .tms-dsc { grid-row:1 / span 2; width:24px; height:24px; }
	.tml-head { flex-wrap:wrap; }
	.tml-head .tms-case { width:64px; height:64px; }
	.tml-head .tms-tile { width:52px; height:52px; }
	.tml-head .tms-tile .tms-dsc { width:44px; height:44px; }
	.tml-ht { flex:1 1 0; }
	.tml-end { width:100%; }
}
