.tcat {
    margin-bottom: var(--space-5);
}

.tcat-card {
    background: var(--surface-card-bg);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.tcat-head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    user-select: none;
    background: var(--surface-elevated-bg);
    border-bottom: 1px solid var(--transparent);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tcat-head:hover {
    background: var(--surface-hover-bg);
}

.tcat.open .tcat-head {
    border-bottom-color: var(--dark-border);
}

.tcat-head-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-primary-30);
    background: var(--dark-primary-10);
    color: var(--dark-400);
}

.tcat-head-ic svg {
    width: 18px;
    height: 18px;
}

.tcat-head-txt {
    flex: 1;
    min-width: 0;
}

.tcat-head-title {
    font-family: var(--disp);
    font-weight: 600;
    font-size: var(--fs-lg);
    color: var(--dark-text);
    letter-spacing: 0.01em;
}

.tcat-head-sub {
    font-size: var(--fs-xs);
    color: var(--dark-text-soft);
    margin-top: 2px;
}

.tcat-head-chev {
    flex-shrink: 0;
    color: var(--dark-text-soft);
    transition: transform 0.2s ease;
}

.tcat-head-chev svg {
    width: 18px;
    height: 18px;
}

.tcat.open .tcat-head-chev {
    transform: rotate(180deg);
}

.tcat-body {
    display: none;
    padding: var(--space-5);
}

.tcat.open .tcat-body {
    display: block;
}

.tcat-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
}

.tcat-step {
    position: relative;
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    background: var(--surface-tile-bg);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.tcat-step:hover {
    border-color: var(--dark-primary-40);
    background: var(--dark-primary-045);
}

.tcat-step-top {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.tcat-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--brand-gradient);
    color: var(--ink);
    font-family: var(--mono);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.tcat-step-title {
    font-family: var(--disp);
    font-weight: 600;
    font-size: var(--fs-md);
    color: var(--dark-text);
}

.tcat-step-desc {
    font-size: var(--fs-sm);
    line-height: 1.5;
    color: var(--dark-text-soft);
    margin: 0;
}

.tcat-step-desc a {
    color: var(--dark-400);
    text-decoration: none;
}

.tcat-step-desc a:hover {
    text-decoration: underline;
}

.tcat-step-desc code {
    font-family: var(--mono);
    font-size: var(--fs-xs);
    color: var(--dark-400);
    background: var(--dark-primary-08);
    border: 1px solid var(--dark-primary-15);
    border-radius: var(--radius-xs);
    padding: 1px 5px;
}

.tcat-cmd {
    display: flex;
    align-items: stretch;
    gap: var(--space-2);
    background: var(--surface-code-bg);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.tcat-cmd pre {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: var(--fs-xs);
    line-height: 1.5;
    color: var(--dark-text);
    white-space: pre;
}

.tcat-cmd pre .tcat-c {
    color: var(--dark-text-soft);
}

.tcat-cmd pre .tcat-a {
    color: var(--dark-400);
}

.tcat-copy {
    flex-shrink: 0;
    align-self: stretch;
    padding: 0 12px;
    border: none;
    border-left: 1px solid var(--dark-border);
    background: var(--surface-quiet-bg);
    color: var(--dark-text-soft);
    font-family: var(--mono);
    font-size: var(--fs-2xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.tcat-copy:hover {
    background: var(--dark-primary-10);
    color: var(--dark-400);
}

.tcat-copy.ok {
    color: var(--success-primary);
    background: var(--success-light);
}

.tcat-step-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 7px 13px;
    border-radius: var(--radius-md);
    border: 1px solid var(--dark-primary-30);
    background: var(--dark-primary-10);
    color: var(--dark-400);
    text-decoration: none;
    font-size: var(--fs-xs);
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tcat-step-link:hover {
    background: var(--dark-primary-18);
    border-color: var(--dark-primary-45);
}

.tcat-step-link svg {
    width: 14px;
    height: 14px;
}

.tcat-ver {
    font-family: var(--mono);
    font-size: var(--fs-2xs);
    color: var(--dark-text-soft);
}

.tcat-foot {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--surface-hairline);
    font-size: var(--fs-xs);
    color: var(--dark-text-soft);
    line-height: 1.6;
}

.tcat-foot a {
    color: var(--dark-400);
    text-decoration: none;
}

.tcat-foot a:hover {
    text-decoration: underline;
}

.tcat-sk {
    background: var(--surface-card-bg);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
}

.tcat-sk-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--space-5);
}

.tcat-sk-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
}

.tcat-sk-line,
.tcat-sk-step {
    background: var(--shimmer-gradient-light);
    background-size: 400% 100%;
    animation: skShimmer 1.4s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

.tcat-sk-line {
    height: 14px;
}

.tcat-sk-line.tcat-sk-w40 {
    width: 40%;
}

.tcat-sk-line.tcat-sk-w70 {
    width: 70%;
}

.tcat-sk-step {
    height: 150px;
    border-radius: var(--radius-lg);
}

@media (prefers-reduced-motion: reduce) {
    .tcat-sk-line,
    .tcat-sk-step {
        animation: none;
    }
    .tcat-head-chev,
    .tcat-step {
        transition: none;
    }
}
