/* Giao diện tra cứu dùng chung với preview. Toàn bộ icon/animation tại máy, không tải font hay thư viện ngoài. */
.kttl-tc { --tc-bg:#fff; --tc-soft:#f6f7f3; --tc-line:#e7ebe4; --tc-text:#26332d; --tc-muted:#7a857e; --tc-gold:#b8860b; --tc-accent:#1f6feb; --tc-good:#177565; --tc-bad:#ad693c; --tc-header:#1d2433; max-width:960px; margin:0 auto; padding:0; color:var(--tc-text); font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; box-sizing:border-box; -webkit-font-smoothing:antialiased; text-align:left; }
.kttl-tc-host { max-width:960px; margin:0 auto; }
.kttl-tc *, .kttl-tc *::before, .kttl-tc *::after { box-sizing:border-box; }
.kttl-tc h2, .kttl-tc h3, .kttl-tc p, .kttl-tc ul { margin:0; padding:0; }
.kttl-tc ul { list-style:none; }
.kttl-tc button, .kttl-tc input { font:inherit; }
.kttl-tc button { cursor:pointer; touch-action:manipulation; }
.kttl-tc button:focus-visible, .kttl-tc summary:focus-visible { outline:3px solid color-mix(in srgb,var(--tc-gold) 65%,#fff); outline-offset:3px; }
.kttl-tc [hidden] { display:none !important; }
.kttl-tc [data-parent-text] { overflow-wrap:anywhere; white-space:pre-wrap; }
.kttl-tc .tc-icon { display:block; width:22px; height:22px; flex-shrink:0; }
.kttl-tc-student { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; width:100%; container-type:inline-size; padding-bottom:20px; }
.kttl-tc-head { position:relative; overflow:hidden; isolation:isolate; padding:26px 30px 46px; border-radius:28px; background:var(--tc-header); background:linear-gradient(120deg,var(--tc-header),color-mix(in srgb,var(--tc-header) 82%,#286354)); color:#fff; box-shadow:0 16px 42px -24px #142f3566; animation:kttl-tc-head-in .65s cubic-bezier(.2,.75,.2,1) both; }
.kttl-tc-head::before { content:""; position:absolute; z-index:-1; inset:0; opacity:.4; background:conic-gradient(from 90deg at 1px 1px,transparent 25%,#ffffff05 0) 0 0/42px 42px; mask-image:linear-gradient(100deg,transparent 20%,#000); pointer-events:none; }
.kttl-tc-head::after { content:""; position:absolute; inset:-120% 40%; background:linear-gradient(90deg,transparent,#ffffff0a,transparent); transform:rotate(25deg) translateX(-150%); animation:kttl-tc-sheen 1.4s .2s ease-out both; pointer-events:none; }
.kttl-tc .tc-hero-piece { position:absolute; z-index:-1; right:-8px; bottom:-30px; color:#fff; opacity:.065; transform:rotate(-12deg); }
.kttl-tc .tc-hero-piece .tc-icon { width:215px; height:215px; stroke-width:.8; }
.kttl-tc .tc-brand { display:flex; gap:10px; align-items:center; position:relative; }
.kttl-tc .tc-brand-mark { display:grid; place-items:center; width:29px; height:29px; border:1px solid #ffffff35; border-radius:9px; color:color-mix(in srgb,var(--tc-gold) 45%,#fff); }
.kttl-tc .tc-brand-mark .tc-icon { width:19px; height:19px; }
.kttl-tc-club { color:color-mix(in srgb,var(--tc-gold) 35%,#fff); font-size:11px; font-weight:650; letter-spacing:.1em; text-transform:uppercase; line-height:1.6; }
.kttl-tc-logo { display:block; max-width:150px; max-height:46px; object-fit:contain; border-radius:8px; }
.kttl-tc .tc-profile { display:flex; gap:17px; align-items:center; margin-top:24px; }
.kttl-tc .tc-avatar { display:grid; flex-shrink:0; place-items:center; width:68px; height:68px; border:1px solid #ffffff60; border-radius:22px; background:linear-gradient(145deg,#ffedbd,color-mix(in srgb,var(--tc-gold) 60%,#fff)); color:var(--tc-header); box-shadow:0 5px 16px #00000012,inset 0 0 0 5px #ffffff1a; font-size:24px; font-weight:750; letter-spacing:-1px; }
.kttl-tc .tc-profile-copy { min-width:0; }
.kttl-tc-head h2 { color:#fff; font-size:clamp(26px,3vw,36px); font-weight:720; letter-spacing:-.04em; line-height:1.2; overflow-wrap:anywhere; }
.kttl-tc-sub { color:#ffffffa6; font-size:13px; margin-top:6px !important; }
.kttl-tc-chips { display:flex; flex-wrap:wrap; gap:8px; }
.kttl-tc .tc-classes { margin-top:23px; }
.kttl-tc-chip { display:inline-flex; gap:9px; align-items:center; padding:9px 12px; border:1px solid #ffffff15; border-radius:12px; background:#ffffff09; font-size:12px; }
.kttl-tc .kttl-tc-chip .tc-icon { width:17px; height:17px; color:#ffffff80; }
.kttl-tc-chip b { display:block; font-size:12px; font-weight:600; color:inherit; }
.kttl-tc-chip small { display:block; color:#ffffff8c; font-size:10px; margin-top:1px; }
.kttl-tc-stats { position:relative; z-index:1; display:grid; grid-template-columns:repeat(auto-fit,minmax(80px,1fr)); gap:12px; margin:-40px 20px 0; }
.kttl-tc .tc-stat { display:flex; gap:13px; align-items:center; min-width:0; padding:20px; border:1px solid var(--tc-line); border-radius:20px; background:#fff; box-shadow:0 8px 20px -14px #1c383633; animation:kttl-tc-rise .65s cubic-bezier(.2,.75,.2,1) both; }
.kttl-tc .tc-stat:nth-child(2) { animation-delay:.08s; }
.kttl-tc .tc-stat:nth-child(3) { animation-delay:.16s; }
.kttl-tc .tc-stat > div { min-width:0; }
.kttl-tc .tc-stat > div > b { display:block; font-size:31px; font-weight:750; line-height:1.2; letter-spacing:-.04em; font-variant-numeric:tabular-nums; color:var(--tc-text); }
.kttl-tc .tc-stat [data-parent-text] { display:block; font-size:11px; color:var(--tc-muted); line-height:1.4; margin-top:4px; }
.kttl-tc .tc-stat-icon { display:grid; place-items:center; width:43px; height:43px; border-radius:14px; flex-shrink:0; color:var(--tc-gold); background:color-mix(in srgb,var(--tc-gold) 10%,#fff); }
.kttl-tc .tc-stat-sessions .tc-stat-icon { color:#1c8470; background:#eaf6ef; }
.kttl-tc .tc-stat-badges .tc-stat-icon { color:#6674b7; background:#eff0fa; }
.kttl-tc-stats:empty { display:none; }
.kttl-tc .tc-nav { position:sticky; z-index:3; top:12px; display:flex; gap:5px; padding:5px; border:1px solid var(--tc-line); border-radius:16px; background:#fafbf8f7; box-shadow:0 7px 24px -20px #203b35; }
.kttl-tc .tc-nav button { display:flex; justify-content:center; align-items:center; gap:8px; flex:1; min-width:0; padding:11px 12px; border:0; border-radius:11px; background:transparent; color:var(--tc-muted); font-size:12px; font-weight:600; transition:background .2s,color .2s,box-shadow .2s,transform .2s; }
.kttl-tc .tc-nav button > span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kttl-tc .tc-nav .tc-icon { width:17px; height:17px; }
.kttl-tc .tc-nav button:hover { color:var(--tc-text); }
.kttl-tc .tc-nav button:active { transform:scale(.98); }
.kttl-tc .tc-nav button[aria-pressed=true] { background:#fff; color:var(--tc-gold); box-shadow:0 2px 9px #2c3b3010; }
.kttl-tc .tc-content { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.kttl-tc-card { min-width:0; border:1px solid var(--tc-line); border-radius:23px; padding:23px; background:var(--tc-bg); box-shadow:0 5px 24px -22px #1c383644; scroll-margin-top:82px; }
.kttl-tc .tc-attendance { grid-column:1/-1; }
.kttl-tc .tc-section-heading { display:flex; align-items:center; gap:11px; margin-bottom:20px; }
.kttl-tc .tc-section-icon { display:grid; place-items:center; flex-shrink:0; width:35px; height:35px; border:1px solid #e9ede6; border-radius:11px; color:#6d8174; background:#f4f7f1; }
.kttl-tc .tc-section-icon .tc-icon { width:19px; height:19px; }
.kttl-tc .tc-section-heading h3 { flex:1; min-width:0; font-size:15px; font-weight:700; letter-spacing:-.02em; color:var(--tc-text); line-height:1.5; }
.kttl-tc .tc-section-count { display:grid; place-items:center; min-width:24px; height:24px; padding:0 6px; border-radius:8px; color:#8d9a8e; background:#f4f6f0; font-size:11px; font-weight:650; }
.kttl-tc .tc-section-summary { margin:0; cursor:pointer; list-style:none; border-radius:9px; }
.kttl-tc .tc-section-summary::-webkit-details-marker { display:none; }
.kttl-tc .tc-section-chevron { display:grid; place-items:center; flex-shrink:0; color:#8c9e8b; }
.kttl-tc .tc-section-chevron .tc-icon { width:18px; height:18px; transition:transform .2s; }
.kttl-tc .tc-section-accordion[open] > .tc-section-summary .tc-section-chevron .tc-icon { transform:rotate(180deg); }
.kttl-tc .tc-section-body { padding-top:18px; }
.kttl-tc .tc-months { display:grid; gap:10px; }
.kttl-tc-month { border:1px solid var(--tc-line); border-radius:17px; overflow:hidden; }
.kttl-tc-month summary { display:flex; align-items:center; gap:12px; padding:16px 17px; background:#fafbf8; cursor:pointer; list-style:none; transition:background .2s; }
.kttl-tc-month summary::-webkit-details-marker { display:none; }
.kttl-tc-month summary:hover { background:#f5f8f1; }
.kttl-tc .tc-month-name { flex:1; min-width:0; color:#3c5145; font-weight:650; font-size:14px; }
.kttl-tc .tc-month-summary { display:flex; align-items:flex-end; flex-direction:column; flex-shrink:0; gap:2px; color:var(--tc-muted); font-size:11px; font-variant-numeric:tabular-nums; }
.kttl-tc .tc-month-summary strong { color:var(--tc-gold); font-size:13px; font-weight:650; }
.kttl-tc .tc-month-chevron { display:grid; place-items:center; width:24px; height:24px; flex-shrink:0; color:#8d9a8e; transition:transform .28s; }
.kttl-tc .tc-month-chevron .tc-icon { width:17px; height:17px; }
.kttl-tc-month[open] .tc-month-chevron { transform:rotate(180deg); }
.kttl-tc-month[open] summary { border-bottom:1px solid var(--tc-line); }
.kttl-tc .tc-month-body { padding:17px; }
.kttl-tc-days { display:flex; flex-wrap:wrap; align-items:flex-start; gap:6px; }
.kttl-tc-days li { display:flex; flex-direction:column; align-items:center; min-width:54px; max-width:100%; gap:2px; padding:5px 8px; border-radius:10px; background:var(--tc-soft); font-size:13px; }
.kttl-tc-days b { color:var(--tc-text); font-size:13px; font-variant-numeric:tabular-nums; }
.kttl-tc-days small { color:var(--tc-muted); font-size:11px; max-width:110px; text-align:center; overflow-wrap:anywhere; }
.kttl-tc-days li[data-tc-weekday] { background:var(--tc-day-bg,var(--tc-soft)); border:1px solid var(--tc-day-border,transparent); }
.kttl-tc-days li[data-tc-weekday] b { color:var(--tc-day-ink,var(--tc-text)); white-space:nowrap; }
.kttl-tc-days li[data-tc-weekday] small { color:var(--tc-day-ink,var(--tc-muted)); opacity:.85; }
.kttl-tc .tc-attendance-weekday { font-size:11px; font-weight:600; }
.kttl-tc-days li[data-tc-weekday="1"] { --tc-day-bg:#fff0f1; --tc-day-border:#f6d7db; --tc-day-ink:#b13d4d; }
.kttl-tc-days li[data-tc-weekday="2"] { --tc-day-bg:#fff5e8; --tc-day-border:#f2dfc2; --tc-day-ink:#9b6420; }
.kttl-tc-days li[data-tc-weekday="3"] { --tc-day-bg:#fffbe6; --tc-day-border:#eee5b6; --tc-day-ink:#827017; }
.kttl-tc-days li[data-tc-weekday="4"] { --tc-day-bg:#edf8ef; --tc-day-border:#d2e8d6; --tc-day-ink:#3b7e4e; }
.kttl-tc-days li[data-tc-weekday="5"] { --tc-day-bg:#edf5ff; --tc-day-border:#d1e1f6; --tc-day-ink:#3b6faf; }
.kttl-tc-days li[data-tc-weekday="6"] { --tc-day-bg:#f4effc; --tc-day-border:#e0d6f2; --tc-day-ink:#7b58aa; }
.kttl-tc-days li[data-tc-weekday="0"] { --tc-day-bg:#fceff7; --tc-day-border:#eed5e5; --tc-day-ink:#a54b80; }
.kttl-tc .tc-attendance-day { display:flex; flex-direction:column; align-items:center; gap:2px; border:0; padding:0; background:transparent; color:inherit; font:inherit; }
.kttl-tc .tc-attendance-day:hover b { color:var(--tc-accent); }
.kttl-tc .tc-lessons { grid-column:1/-1; }
.kttl-tc .tc-lessons .tc-section-icon { color:#438875; background:#eff7f1; border-color:#dfede1; }
.kttl-tc .tc-lesson-toolbar { display:grid; gap:12px; margin-bottom:14px; min-width:0; }
.kttl-tc .tc-lesson-months { display:flex; align-items:center; gap:10px; min-width:0; }
.kttl-tc .tc-lesson-months-label { flex-shrink:0; white-space:nowrap; font-size:12px; font-weight:600; color:#526c5b; }
.kttl-tc .tc-lesson-chips { display:flex; gap:8px; min-width:0; overflow-x:auto; padding:2px 1px 4px; scrollbar-width:none; }
.kttl-tc .tc-lesson-chips::-webkit-scrollbar { display:none; }
.kttl-tc .tc-lesson-chip { display:inline-flex; align-items:center; gap:7px; flex-shrink:0; height:auto; margin:0; padding:6px 12px; border:1px solid var(--tc-line); border-radius:999px; background:#fff; color:#5f7466; font:inherit; font-size:13px; font-weight:600; line-height:1.4; white-space:nowrap; cursor:pointer; box-shadow:none; text-transform:none; letter-spacing:0; }
.kttl-tc .tc-lesson-chip small { min-width:18px; padding:0 6px; border-radius:999px; background:var(--tc-soft); color:var(--tc-muted); font-size:11px; text-align:center; }
.kttl-tc .tc-lesson-chip:hover { border-color:#c9dcc4; background:#fafcf8; }
.kttl-tc .tc-lesson-chip[aria-pressed="true"] { border-color:#a9cc9c; background:#eef6e8; color:#2f5d3a; }
.kttl-tc .tc-lesson-chip[aria-pressed="true"] small { background:#fff; color:#3b6d45; }
.kttl-tc .tc-lesson-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.kttl-tc .tc-lesson-stats > * { display:grid; gap:1px; min-width:0; margin:0; padding:9px 12px; border:0; border-radius:10px; background:var(--tc-soft); color:var(--tc-muted); font:inherit; font-size:11px; line-height:1.4; text-align:left; box-shadow:none; text-transform:none; letter-spacing:0; }
.kttl-tc .tc-lesson-stats b { color:#3f5747; font-size:18px; font-weight:700; font-variant-numeric:tabular-nums; }
.kttl-tc .tc-lesson-stats button { cursor:pointer; }
.kttl-tc .tc-lesson-stats button:hover { background:#eef6e8; }
.kttl-tc .tc-lesson-list { display:grid; gap:10px; }
.kttl-tc .tc-lesson { border:1px solid var(--tc-line); border-radius:14px; overflow:hidden; }
.kttl-tc .tc-lesson summary { display:flex; align-items:center; gap:14px; padding:14px 16px; cursor:pointer; list-style:none; }
.kttl-tc .tc-lesson summary::-webkit-details-marker { display:none; }
.kttl-tc .tc-lesson-date { display:grid; gap:2px; flex-shrink:0; min-width:55px; padding:7px 9px; border-radius:10px; background:#f0f6ec; color:#548266; text-align:center; font-variant-numeric:tabular-nums; }
.kttl-tc .tc-lesson-date b { font-size:15px; font-weight:700; }
.kttl-tc .tc-lesson-date small { font-size:10px; color:#8c9c80; }
.kttl-tc .tc-lesson-copy { display:grid; gap:4px; flex:1; min-width:0; overflow-wrap:anywhere; }
.kttl-tc .tc-lesson-copy small { font-size:10px; color:var(--tc-muted); }
.kttl-tc .tc-lesson-copy strong { font-size:13px; font-weight:650; color:#3f5747; }
.kttl-tc .tc-lesson-date[data-tc-weekday] { background:var(--tc-day-bg,#f0f6ec); }
.kttl-tc .tc-lesson-date[data-tc-weekday] b, .kttl-tc .tc-lesson-date[data-tc-weekday] small { color:var(--tc-day-ink,#548266); }
.kttl-tc .tc-lesson-date[data-tc-weekday="1"] { --tc-day-bg:#fff0f1; --tc-day-ink:#b13d4d; }
.kttl-tc .tc-lesson-date[data-tc-weekday="2"] { --tc-day-bg:#fff5e8; --tc-day-ink:#9b6420; }
.kttl-tc .tc-lesson-date[data-tc-weekday="3"] { --tc-day-bg:#fffbe6; --tc-day-ink:#827017; }
.kttl-tc .tc-lesson-date[data-tc-weekday="4"] { --tc-day-bg:#edf8ef; --tc-day-ink:#3b7e4e; }
.kttl-tc .tc-lesson-date[data-tc-weekday="5"] { --tc-day-bg:#edf5ff; --tc-day-ink:#3b6faf; }
.kttl-tc .tc-lesson-date[data-tc-weekday="6"] { --tc-day-bg:#f4effc; --tc-day-ink:#7b58aa; }
.kttl-tc .tc-lesson-date[data-tc-weekday="0"] { --tc-day-bg:#fceff7; --tc-day-ink:#a54b80; }
.kttl-tc .tc-lesson-preview { overflow:hidden; color:#7d8c81; font-size:12px; white-space:nowrap; text-overflow:ellipsis; }
.kttl-tc .tc-lesson[open] .tc-lesson-preview { display:none; }
.kttl-tc .tc-lesson-chevron { display:grid; place-items:center; color:#94a58d; }
.kttl-tc .tc-lesson-chevron .tc-icon { width:17px; height:17px; transition:transform .2s; }
.kttl-tc .tc-lesson[open] summary { background:#fafcf7; border-bottom:1px solid #edf1e9; }
.kttl-tc .tc-lesson[open] .tc-lesson-chevron .tc-icon { transform:rotate(180deg); }
.kttl-tc .tc-lesson-detail { padding:15px 20px 17px; }
.kttl-tc .tc-lesson-detail ul { margin:0; padding-left:17px; list-style:disc; color:#667b6b; font-size:13px; line-height:1.8; overflow-wrap:anywhere; }
.kttl-tc .tc-lesson-detail li + li { margin-top:5px; }
.kttl-tc .tc-lesson-detail li::marker { color:#a3b29a; }
.kttl-tc .tc-lesson-more { display:flex; align-items:center; justify-content:center; gap:8px; margin:15px auto 0; padding:9px 15px; border:1px solid var(--tc-line); border-radius:9px; color:#647f69; background:#f8fbf5; font-size:12px; font-weight:600; }
.kttl-tc .tc-lesson-more .tc-icon { width:15px; height:15px; }
@media(max-width:600px) { .kttl-tc .tc-lesson summary { padding:12px; gap:10px; } .kttl-tc .tc-lesson-detail { padding:12px 15px 15px; } .kttl-tc .tc-lesson-copy strong { font-size:12px; } .kttl-tc .tc-lesson-months { display:grid; gap:6px; } .kttl-tc .tc-lesson-stats > * { padding:8px 9px; font-size:10px; } .kttl-tc .tc-lesson-stats b { font-size:16px; } }
@container(max-width:600px) { .kttl-tc .tc-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .kttl-tc .tc-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); } }
.kttl-tc-note { color:var(--tc-muted); font-size:11px; line-height:1.65; }
.kttl-tc .tc-fee-note { display:flex; gap:9px; align-items:flex-start; margin-top:16px !important; padding:12px 14px !important; border-radius:11px; background:#f8f9f4; color:#8b9686; }
.kttl-tc .tc-fee-note .tc-icon { width:15px; height:15px; margin-top:2px; color:#a1ad94; }
.kttl-tc-lines { display:grid; gap:0; }
.kttl-tc-lines li { display:flex; align-items:flex-start; gap:12px; padding:14px 0; border-top:1px solid #f0f2ec; font-size:13px; color:#66776b; overflow-wrap:anywhere; }
.kttl-tc-lines li:first-child { border-top:0; padding-top:0; }
.kttl-tc-lines li:last-child { padding-bottom:0; }
.kttl-tc-lines li > div { flex:1; min-width:0; }
.kttl-tc .tc-toned-lines { gap:8px; }
.kttl-tc .tc-toned-lines li { padding:10px 12px; border:1px solid #edf0e9; border-radius:10px; background:#fafbf8; }
.kttl-tc .tc-toned-lines li[data-tc-tone="positive"] { color:#166534; background:#f0faf3; border-color:#dceee1; }
.kttl-tc .tc-toned-lines li[data-tc-tone="negative"] { color:#b42332; background:#fff2f2; border-color:#f3dddd; }
.kttl-tc .tc-toned-lines li[data-tc-tone] p { color:inherit; }
.kttl-tc .tc-toned-lines li[data-tc-tone="positive"] .tc-line-marker { color:#238249; background:#e5f5e9; border-color:#cce8d5; }
.kttl-tc .tc-toned-lines li[data-tc-tone="negative"] .tc-line-marker { color:#ce3e4e; background:#ffe5e8; border-color:#f5cdd3; }
.kttl-tc .kttl-tc-good .tc-section-heading h3 { color:#238249; }
.kttl-tc .kttl-tc-good .tc-section-icon { color:#238249; background:#edf8f0; border-color:#dceee1; }
.kttl-tc .kttl-tc-bad .tc-section-heading h3 { color:#c53747; }
.kttl-tc .kttl-tc-bad .tc-section-icon { color:#c53747; background:#fff0f1; border-color:#f3dbe0; }
.kttl-tc .tc-line-marker { display:grid; place-items:center; width:25px; height:25px; flex-shrink:0; border:1px solid #edf0e8; border-radius:8px; color:#b4bfa9; background:#f9faf6; }
.kttl-tc .tc-line-marker .tc-icon { width:13px; height:13px; }
.kttl-tc .tc-log-date { display:inline-block; margin-bottom:5px; padding:1px 7px; border-radius:5px; background:#f3f5ef; color:#8c9886; font-size:10px; }
.kttl-tc-good .tc-section-icon, .kttl-tc-good .tc-line-marker { color:#4b9475; background:#eff8f0; border-color:#e3f0e1; }
.kttl-tc .tc-gifts .tc-section-icon, .kttl-tc .tc-gifts .tc-line-marker { color:#c29257; background:#fff7ec; border-color:#f6ead9; }
.kttl-tc-bad .tc-section-icon, .kttl-tc-bad .tc-line-marker { color:#b18466; background:#faf4ef; border-color:#f0e5da; }
.kttl-tc .tc-achievements .tc-section-icon { color:#b89751; background:#fdf8e9; border-color:#f4ecd1; }
.kttl-tc .tc-badge-shelf { display:grid; grid-template-columns:repeat(auto-fit,minmax(95px,1fr)); gap:12px; }
.kttl-tc .tc-badge { display:flex; flex-direction:column; align-items:center; gap:13px; padding:16px 8px 13px; border:1px solid #f1ede2; border-radius:16px; background:linear-gradient(#fffdf7,#fff); text-align:center; }
.kttl-tc .tc-badge b { color:#9d895d; font-size:11px; font-weight:600; line-height:1.45; }
.kttl-tc .tc-badge-medal { position:relative; display:grid; place-items:center; width:58px; height:58px; margin-bottom:5px; border:1px solid #e9ce85; border-radius:50%; background:linear-gradient(145deg,#fff7d1,#f1d88d); color:#ac8129; box-shadow:inset 0 0 0 5px #fff3c7,inset 0 0 0 6px #e7c973,0 6px 14px #e7c36c25; }
.kttl-tc .tc-badge-medal::before, .kttl-tc .tc-badge-medal::after { content:""; position:absolute; z-index:-1; width:16px; height:25px; top:43px; border-radius:2px; background:#e9d497; transform:rotate(17deg); }
.kttl-tc .tc-badge-medal::before { left:10px; }
.kttl-tc .tc-badge-medal::after { right:10px; transform:rotate(-17deg); }
.kttl-tc .tc-badge-medal .tc-icon { width:25px; height:25px; }
.kttl-tc .tc-badge[data-tone="1"] { border-color:#e6eee9; background:linear-gradient(#f4faf5,#fff); }
.kttl-tc .tc-badge[data-tone="1"] b { color:#6c9584; }
.kttl-tc .tc-badge[data-tone="1"] .tc-badge-medal { border-color:#a3cab0; background:linear-gradient(145deg,#eef9e8,#b5d5bb); color:#628f6f; box-shadow:inset 0 0 0 5px #e0efdc,inset 0 0 0 6px #accdb1; }
.kttl-tc .tc-badge[data-tone="2"] { border-color:#e9e9f1; background:linear-gradient(#f8f7fe,#fff); }
.kttl-tc .tc-badge[data-tone="2"] b { color:#9490b0; }
.kttl-tc .tc-badge[data-tone="2"] .tc-badge-medal { border-color:#c7bedf; background:linear-gradient(145deg,#f9f5ff,#d1c9e8); color:#9382b2; box-shadow:inset 0 0 0 5px #eee8f8,inset 0 0 0 6px #c4b8dc; }
.kttl-tc .tc-updated { display:flex; align-items:center; justify-content:center; gap:7px; padding:4px 12px !important; text-align:center; color:#a5ada1; font-size:10px; }
.kttl-tc .tc-update-dot { display:inline-block; width:5px; height:5px; flex-shrink:0; border-radius:50%; background:#9cbca2; animation:kttl-tc-dot 1.1s 2; }
.kttl-tc .tc-empty { padding:30px 15px; color:#a3ae9d; text-align:center; }
.kttl-tc .tc-empty > span { display:grid; place-items:center; width:46px; height:46px; margin:0 auto 10px; background:#f3f6ed; border-radius:15px; }
.kttl-tc .tc-empty p { font-size:12px; }
.kttl-tc-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); border:1px solid var(--tc-line); border-radius:28px; background:#fff; overflow:hidden; box-shadow:0 20px 70px -45px #243c3466; container-type:inline-size; }
.kttl-tc .tc-lookup-intro { position:relative; overflow:hidden; padding:30px; background:var(--tc-header); background:linear-gradient(145deg,var(--tc-header),color-mix(in srgb,var(--tc-header) 85%,#387665)); color:#fff; }
.kttl-tc .tc-lookup-intro h2 { position:relative; margin-top:27px; font-size:29px; font-weight:650; letter-spacing:-.04em; line-height:1.3; color:#fff; }
.kttl-tc .tc-lookup-intro .kttl-tc-muted { position:relative; margin-top:12px; max-width:340px; color:#ffffff80; font-size:12px; line-height:1.8; }
.kttl-tc .tc-lookup-art { position:relative; display:grid; place-items:center; height:155px; margin-top:24px; isolation:isolate; }
.kttl-tc .tc-lookup-art::before { content:""; position:absolute; width:180px; height:100px; border:1px solid #ffffff0b; border-radius:18px; transform:rotate(-12deg) skewY(-7deg); background:conic-gradient(from 90deg,#ffffff07 25%,transparent 0 50%,#ffffff07 0 75%,transparent 0) 0 0/46px 46px; }
.kttl-tc .tc-lookup-art > span { position:relative; display:grid; place-items:center; width:95px; height:115px; border:1px solid #d8c08255; border-radius:27px; background:linear-gradient(140deg,#ffffff14,#ffffff03); transform:rotate(-8deg); color:#e0c78a; animation:kttl-tc-art-in 1s ease-out both; box-shadow:12px 12px 0 #00000005; }
.kttl-tc .tc-lookup-art .tc-icon { width:60px; height:60px; stroke-width:1; }
.kttl-tc .tc-lookup-art i { position:absolute; width:8px; height:8px; border-radius:2px; background:#e0c78a33; transform:rotate(35deg); }
.kttl-tc .tc-lookup-art i:nth-child(2) { left:20%; top:20%; }
.kttl-tc .tc-lookup-art i:nth-child(3) { right:20%; bottom:15%; width:14px; height:14px; }
.kttl-tc .tc-lookup-art i:nth-child(4) { right:16%; top:13%; width:5px; height:5px; }
.kttl-tc .tc-lookup-fields { display:flex; flex-direction:column; justify-content:center; gap:22px; padding:40px 32px; }
.kttl-tc .tc-lookup-fields label { display:grid; gap:9px; color:#56665a; font-size:12px; font-weight:600; }
.kttl-tc .tc-input-wrap { position:relative; display:block; }
.kttl-tc .tc-input-wrap > .tc-icon { position:absolute; left:14px; top:15px; width:19px; height:19px; color:#a6b09e; pointer-events:none; }
.kttl-tc .tc-lookup-fields input { display:block; width:100%; min-width:0; padding:14px 14px 14px 44px; border:1px solid #e2e7dc; border-radius:12px; background:#fafbf7; color:var(--tc-text); font-size:14px; outline:none; transition:border-color .2s,box-shadow .2s,background .2s; }
.kttl-tc .tc-lookup-fields input::placeholder { color:#bdc5b6; }
.kttl-tc .tc-lookup-fields input:focus { border-color:var(--tc-gold); background:#fff; box-shadow:0 0 0 3px color-mix(in srgb,var(--tc-gold) 10%,transparent); }
.kttl-tc .tc-lookup-submit { position:relative; display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; margin-top:5px; padding:15px 18px; border:1px solid color-mix(in srgb,var(--tc-gold) 80%,#000); border-radius:12px; background:var(--tc-gold); color:#fff; font-size:13px; font-weight:650; overflow:hidden; transition:transform .2s,box-shadow .2s,opacity .2s; }
.kttl-tc .tc-lookup-submit:hover { transform:translateY(-2px); box-shadow:0 6px 18px color-mix(in srgb,var(--tc-gold) 20%,transparent); }
.kttl-tc .tc-lookup-submit:active { transform:translateY(0); }
.kttl-tc .tc-lookup-submit:disabled { opacity:.55; cursor:wait; transform:none; }
.kttl-tc-result { display:grid; grid-column:1/-1; gap:18px; padding:0; }
.kttl-tc-result:not(:empty) { padding:18px; border-top:1px solid var(--tc-line); background:#f7f9f3; }
.kttl-tc-message { padding:30px 22px; max-width:520px; margin:24px auto; border:1px solid var(--tc-line); border-radius:24px; background:#fff; text-align:center; box-shadow:0 12px 35px -28px #31483955; animation:kttl-tc-rise .4s ease-out both; }
.kttl-tc-message::before { content:"♙"; display:grid; place-items:center; width:60px; height:60px; margin:0 auto 18px; border:1px solid #e7ebdf; border-radius:20px; background:#f7f9f1; color:#a3af8d; font-size:36px; }
.kttl-tc-message h2 { font-size:20px; line-height:1.4; letter-spacing:-.025em; color:var(--tc-text); }
.kttl-tc-message p { margin-top:10px; font-size:13px; color:var(--tc-muted); }
.kttl-tc-loading { max-width:450px; margin:30px auto; padding:30px; color:#a3ae9d; text-align:center; font:13px/1.7 system-ui,sans-serif; }
.kttl-tc.tc-motion .tc-reveal { opacity:0; transform:translateY(14px); }
.kttl-tc.tc-motion .tc-reveal.tc-in { animation:kttl-tc-rise .6s calc(var(--tc-order,0)*45ms) cubic-bezier(.2,.75,.2,1) both; }
@keyframes kttl-tc-rise { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
@keyframes kttl-tc-head-in { from { opacity:0; transform:translateY(8px) scale(.992); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes kttl-tc-sheen { from { transform:rotate(25deg) translateX(-220%); } to { transform:rotate(25deg) translateX(450%); } }
@keyframes kttl-tc-dot { 50% { box-shadow:0 0 0 4px #9cbca215; } }
@keyframes kttl-tc-art-in { from { opacity:0; transform:rotate(-14deg) translateY(10px); } to { opacity:1; transform:rotate(-8deg) translateY(0); } }
.kttl-tc[data-tc-preview="1"] *, .kttl-tc[data-tc-preview="1"]::after { animation:none !important; }
@container (max-width:600px) {
.kttl-tc .tc-content { grid-template-columns:minmax(0,1fr); gap:14px; }
.kttl-tc-card { padding:19px; border-radius:21px; }
.kttl-tc-head { padding:22px 22px 42px; border-radius:24px; }
.kttl-tc .tc-profile { gap:13px; margin-top:22px; }
.kttl-tc .tc-avatar { width:56px; height:56px; border-radius:18px; font-size:20px; }
.kttl-tc-head h2 { font-size:27px; }
.kttl-tc .tc-classes { margin-top:19px; }
.kttl-tc-chip { padding:8px 10px; border-radius:10px; }
.kttl-tc-stats { margin-left:12px; margin-right:12px; gap:8px; }
.kttl-tc .tc-stat { display:flex; flex-direction:column; align-items:flex-start; gap:11px; padding:14px 12px; border-radius:16px; }
.kttl-tc .tc-stat-icon { width:31px; height:31px; border-radius:10px; }
.kttl-tc .tc-stat-icon .tc-icon { width:18px; height:18px; }
.kttl-tc .tc-stat > div > b { font-size:26px; }
.kttl-tc .tc-stat [data-parent-text] { font-size:10px; }
.kttl-tc .tc-month-body { padding:15px; }
.kttl-tc .tc-nav { top:8px; border-radius:14px; }
.kttl-tc .tc-nav button { font-size:11px; gap:5px; padding:10px 7px; }
.kttl-tc .tc-nav button .tc-icon { width:15px; height:15px; }
.kttl-tc .tc-lookup-intro { padding:25px; }
.kttl-tc .tc-lookup-intro h2 { font-size:27px; margin-top:8px; }
.kttl-tc .tc-lookup-intro .tc-brand { margin-bottom:16px; }
.kttl-tc .tc-lookup-art { float:right; width:90px; height:105px; margin:0 0 0 16px; }
.kttl-tc .tc-lookup-art > span { width:62px; height:75px; border-radius:20px; }
.kttl-tc .tc-lookup-art .tc-icon { width:40px; height:40px; }
.kttl-tc .tc-lookup-art::before { width:110px; height:65px; }
.kttl-tc .tc-lookup-fields { padding:25px; gap:19px; }
}
@media (max-width:600px) {
.kttl-tc-form { grid-template-columns:minmax(0,1fr); border-radius:24px; }
.kttl-tc-student { gap:16px; } }
@media (hover:none) {
.kttl-tc .tc-lookup-submit:hover { transform:none; box-shadow:none; } }
.kttl-tc[data-layout="compact"] { gap:12px; }
.kttl-tc[data-layout="compact"] .kttl-tc-head { padding-top:19px; padding-bottom:36px; }
.kttl-tc[data-layout="compact"] .tc-profile { margin-top:16px; }
.kttl-tc[data-layout="compact"] .tc-classes { margin-top:15px; }
.kttl-tc[data-layout="compact"] .tc-stat { padding:13px; }
.kttl-tc[data-layout="compact"] .kttl-tc-card { padding:17px; }
.kttl-tc[data-layout="compact"] .tc-section-heading { margin-bottom:14px; }
.kttl-tc[data-layout="compact"] .kttl-tc-lines li { padding-top:10px; padding-bottom:10px; }
@media (prefers-reduced-motion:reduce) {
.kttl-tc *, .kttl-tc *::before, .kttl-tc *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
.kttl-tc.tc-motion .tc-reveal { opacity:1; transform:none; } }

/* Chữ tự đổi tương phản khi CLB chọn màu đầu trang sáng. */
.kttl-tc-head, .kttl-tc .tc-lookup-intro { color:var(--tc-header-ink,#fff); }
.kttl-tc-head h2, .kttl-tc .tc-lookup-intro h2 { color:var(--tc-header-ink,#fff); }
.kttl-tc-sub, .kttl-tc .tc-lookup-intro .kttl-tc-muted { color:color-mix(in srgb,var(--tc-header-ink,#fff) 65%,transparent); }
.kttl-tc-club { color:color-mix(in srgb,var(--tc-header-ink,#fff) 75%,var(--tc-gold)); }
.kttl-tc .tc-brand-mark { border-color:color-mix(in srgb,var(--tc-header-ink,#fff) 20%,transparent); color:color-mix(in srgb,var(--tc-header-ink,#fff) 60%,var(--tc-gold)); }
.kttl-tc .tc-classes .kttl-tc-chip { border-color:color-mix(in srgb,var(--tc-header-ink,#fff) 10%,transparent); background:color-mix(in srgb,var(--tc-header-ink,#fff) 4%,transparent); }
.kttl-tc .tc-classes .kttl-tc-chip small, .kttl-tc .tc-classes .kttl-tc-chip .tc-icon { color:color-mix(in srgb,var(--tc-header-ink,#fff) 60%,transparent); }
.kttl-tc .tc-avatar { color:#1d2930; }

/* Dự phòng cho trình duyệt chưa hỗ trợ container query. */
@media (max-width:600px) {
.kttl-tc .tc-content { grid-template-columns:minmax(0,1fr); gap:14px; }
.kttl-tc-card { padding:19px; border-radius:21px; }
.kttl-tc-head { padding:22px 22px 42px; border-radius:24px; }
.kttl-tc .tc-profile { gap:13px; margin-top:22px; }
.kttl-tc .tc-avatar { width:56px; height:56px; border-radius:18px; font-size:20px; }
.kttl-tc-head h2 { font-size:27px; }
.kttl-tc .tc-classes { margin-top:19px; }
.kttl-tc-chip { padding:8px 10px; border-radius:10px; }
.kttl-tc-stats { margin-left:12px; margin-right:12px; gap:8px; }
.kttl-tc .tc-stat { display:flex; flex-direction:column; align-items:flex-start; gap:11px; padding:14px 12px; border-radius:16px; }
.kttl-tc .tc-stat-icon { width:31px; height:31px; border-radius:10px; }
.kttl-tc .tc-stat-icon .tc-icon { width:18px; height:18px; }
.kttl-tc .tc-stat > div > b { font-size:26px; }
.kttl-tc .tc-stat [data-parent-text] { font-size:10px; }
.kttl-tc .tc-month-body { padding:15px; }
.kttl-tc .tc-nav { top:8px; border-radius:14px; }
.kttl-tc .tc-nav button { font-size:11px; gap:5px; padding:10px 7px; }
.kttl-tc .tc-nav button .tc-icon { width:15px; height:15px; }
.kttl-tc .tc-lookup-intro { padding:25px; }
.kttl-tc .tc-lookup-intro h2 { font-size:27px; margin-top:8px; }
.kttl-tc .tc-lookup-intro .tc-brand { margin-bottom:16px; }
.kttl-tc .tc-lookup-art { float:right; width:90px; height:105px; margin:0 0 0 16px; }
.kttl-tc .tc-lookup-art > span { width:62px; height:75px; border-radius:20px; }
.kttl-tc .tc-lookup-art .tc-icon { width:40px; height:40px; }
.kttl-tc .tc-lookup-art::before { width:110px; height:65px; }
.kttl-tc .tc-lookup-fields { padding:25px; gap:19px; }

}
