.ttccj-root { max-width: 960px; margin: 24px auto; padding: 0 16px 24px; box-sizing: border-box; }
.ttccj-google-slot { display: flex; justify-content: center; width: 100%; margin-block: 16px; }
.ttccj-google-form { width: auto; max-width: 100%; margin: 0; }
.ttccj-root[hidden], .ttccj-code-slot[hidden], .ttccj-guide [hidden], .ttccj-card [hidden] { display: none !important; }
.ttccj-guide, .ttccj-card { box-sizing: border-box; max-width: 100%; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: #253047; }
.ttccj-guide { padding: 20px; border: 1px solid #c8dbef; border-radius: 14px; background: #f5faff; margin: 16px 0; }
.ttccj-title { display: block; font-size: 15px; margin: 0 0 10px; }
.ttccj-keyword { margin: 8px 0; }
.ttccj-keywords { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.ttccj-keyword-label { font-size: 14px; font-weight: 600; }
.ttccj-keyword-tag { padding: 3px 9px; border: 1px solid #c8dbef; border-radius: 6px; background: #fff; font-size: 14px; overflow-wrap: anywhere; }
.ttccj-guide-button, .ttccj-code-button, .ttccj-copy { appearance: none; font: inherit; text-transform: none; letter-spacing: normal; min-height: 44px; margin: 0; cursor: pointer; box-sizing: border-box; }
.ttccj-guide-button { border: 0; border-radius: 9px; padding: 12px 18px; max-width: 100%; color: #fff; background: linear-gradient(135deg, #003e99, #0089d7); font-weight: 650; font-size: 18px; width: 300px; height: 60px; box-shadow: 0px 6px 15px rgb(0 86 187 / 21%); }
.ttccj-guide-button.ttccj-google-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: min(300px, 100%);
    height: auto;
    min-height: 60px;
    padding: 10px 9px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}
.ttccj-google-button .ttccj-google-icon {
    display: block;
    flex: none;
    width: 25px;
    height: 25px;
    margin: 0;
    border-radius: 2px;
}
.ttccj-google-button:focus-visible { outline: 3px solid #1265b6; outline-offset: 3px; }
@media (hover: hover) {
    .ttccj-google-button:not(:disabled):hover {
        transform: translateY(-2px);
        filter: brightness(1.08);
        box-shadow: 0 9px 20px rgb(0 86 187 / 30%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .ttccj-guide-button.ttccj-google-button { transition: none; }
    .ttccj-google-button:not(:disabled):hover { transform: none; }
}
.ttccj-card {  text-align: center; }
.ttccj-line { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; }
.ttccj-code-button { border: 0; border-radius: 10px; padding: 14px 18px; max-width: 100%; color: #fff; background: linear-gradient(110deg,#ff8634,#f04400); font-size: 18px; font-weight: 700; box-shadow: 0 4px 11px #0002; overflow-wrap: anywhere; }
.ttccj-code-button:hover { background: linear-gradient(110deg,#ed7223,#d93c00); }
.ttccj-code-button:not(:disabled):not([hidden]) { transform-origin: center; animation: ttccj-code-pulse-shrink .3s linear infinite alternate !important; }
@keyframes ttccj-code-pulse-shrink { from { transform: scale(1); } to { transform: scale(.9); } }
.ttccj-code-button:disabled, .ttccj-code-button[hidden] { animation: none !important; transform: none; }
.ttccj-guide-button:disabled, .ttccj-code-button:disabled { opacity: .85; cursor: wait; }
.ttccj-result { width: min(100%,360px); margin: 0 auto; }
.ttccj-code-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 12px 14px; box-sizing: border-box; border: 3px solid #fff; border-radius: 20px; background: #116ebf; color: #fff; box-shadow: 0 2px 12px #0002; text-align: left; }
.ttccj-code-row + .ttccj-code-row { margin-top: 8px; }
.ttccj-code-text { min-width: 0; font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.ttccj-code-value { font: inherit; color: #fff; overflow-wrap: anywhere; white-space: pre-wrap; user-select: all; }
.ttccj-copy-controls { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.ttccj-copy { flex: none; border: 1px solid #ffc697; border-radius: 9px; padding: 7px 12px; color: #b34309; background: #fff; font-size: 14px; }
.ttccj-copy:disabled { opacity: .8; cursor: wait; }
.ttccj-copy-check { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; box-sizing: border-box; border: 2px solid #fff; border-radius: 50%; color: #fff; font-size: 16px; font-weight: 700; line-height: 1; }
.ttccj-message { margin: 10px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.ttccj-message:empty { display: none; }
.ttccj-card button:focus-visible, .ttccj-guide button:focus-visible { outline: 3px solid #1265b6; outline-offset: 3px; }
@media(max-width:480px) { .ttccj-root { padding: 0 12px 20px; } .ttccj-code-button { font-size: 16px; } .ttccj-code-row { flex-wrap: wrap; } }
