.pt-page {
    padding: 0;
    background: transparent;
}

.pt-toolbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.pt-test-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pt-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 20px;
    transition: .2s;
}

.pt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
}

.pt-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pt-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 6px;
}

.pt-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.pt-empty {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    box-shadow: none;
    font-weight: 500;
    width: auto;
    min-height: auto;
}

.pt-create-box {
    width: 550px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

.pt-view-box {
    width: 1100px;
    max-width: 95vw;
    max-height: 90vh;
    overflow: auto;
}

.pt-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pt-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pt-question-selector {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pt-q-row {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    cursor: pointer;
}

.pt-q-row:hover {
    background: #fafafa;
}

.pt-q-row input {
    width: 18px;
    height: 18px;
    flex: none;
    margin: 0;
}

.pt-q-row span {
    flex: 1;
}

.pt-question {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 24px;
}

.pt-answer {
    width: 100%;
    min-height: 140px;
    margin-top: 14px;
}

#pt-save-test:disabled {
    opacity: .45;
    pointer-events: none;
}


.pt-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0 !important;
}

.pt-popup-header .pe-popup-close {
    font-size: 34px;
    cursor: pointer;
    line-height: 1;
    margin-left: auto;
}

.pt-timer-card {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fafafa;
    width: fit-content;
}

.pt-time-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pt-time-col span {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.pt-time-col input {
    width: 35px !important;
    height: 28px;
    text-align: center;
    font-size: 13px !important;
    font-weight: 700;
    border-radius: 10px !important;
    padding: 0 !important;
}

.pt-time-separator {
    font-size: 34px;
    font-weight: 700;
    padding-bottom: 8px;
    color: #777;
}

.pt-question-dropdown {
    position: relative;
    width: 100%;
}

.pt-question-toggle {
    width: 100%;
    height: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
}

.pt-question-selector {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    max-height: 320px;
    overflow: auto;
    z-index: 20;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}

.pt-question-selector.open {
    display: block;
}

.pt-ps-block {
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
}

.pt-ps-title {
    background: #f7f7f7;
    padding: 12px 16px;
    font-weight: 700;
}

.pt-selected-list {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pt-selected-item {
    padding: 12px 16px;
    background: #f8f9fb;
    border-radius: 8px;
    font-size: 14px;
    border-left: 4px solid #a7d3ff;

}

.pt-group {
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.pt-group-header {
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    background: #f8f8f8;
    font-weight: 700;
}

.pt-group-body {
    display: none;
}

.pt-group.open .pt-group-body {
    display: flex;
}

.pt-arrow {
    transition: .25s;
}

.pt-group.open .pt-arrow {
    transform: rotate(90deg);
}

.pt-q-title {
    flex: 1;
    margin-left: 10px;
    font-size: 14px;
    color: #333;
    white-space: normal;
    word-break: break-word;
}