.pt-content {
    max-width: 720px;
    padding: 1.25rem 1rem 1rem;
}

#pt-grid {
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    gap: 2px;
}

.pt-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    font-size: 1.0rem;
    font-weight: 600;
    border-radius: 3px;
    border: 1.5px solid transparent;
    color: #333;
    cursor: default;
    line-height: 1;
    gap: 1px;
}

.pt-cell .pt-z {
    font-size: 0.6rem;
    font-weight: 400;
    color: #555;
    line-height: 1;
}

/* Category colors */
.pt-cat-am { background: #fce4ec; }
.pt-cat-ae { background: #fff3e0; }
.pt-cat-tm { background: #fff9c4; }
.pt-cat-ml { background: #e8f5e9; }
.pt-cat-nm { background: #e3f2fd; }
.pt-cat-ha { background: #e8eaf6; }
.pt-cat-ng { background: #f3e5f5; }
.pt-cat-pt { background: #e0f2f1; }
.pt-cat-ln { background: #fce4ec; }
.pt-cat-ac { background: #efebe9; }

.pt-highlight {
    background: #6153cc !important;
    color: white;
    border: 2px solid #4a3fb5;
}
.pt-highlight .pt-z {
    color: rgba(255, 255, 255, 0.8);
}

.pt-spacer {
    grid-column: 1 / -1;
    height: 6px;
}

/* PT open button — styled as a teal pill to distinguish from purple mode
   toggle pills while keeping the same shape language. */
#pt-btn {
    padding: 6px 16px;
    border: 2px solid #80cbc4;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #00897b;
    transition: all 0.2s;
}
#pt-btn:hover {
    background: #e0f2f1;
    border-color: #00897b;
}

@media (max-width: 520px) {
    .pt-content {
        max-width: 98vw;
        padding: 0.75rem 0.4rem 0.6rem;
    }
    .pt-cell {
        font-size: 0.6rem;
    }
    .pt-cell .pt-z {
        font-size: 0.32rem;
    }
}
