@charset "UTF-8";

.ptg-main-layout,
.ptg-input-col,
.ptg-result-col,
.ptg-input-section,
.ptg-input-grid,
.ptg-input-group,
.ptg-input,
.ptg-input-unit-row,
.ptg-unit-chip,
.ptg-chip-section,
.ptg-chip-block,
.ptg-chip-group,
.ptg-btn-row,
.ptg-support-grid,
.ptg-support-card,
.ptg-chart-section,
.ptg-table-section,
.ptg-table-wrap,
.ptg-section,
.ptg-reference,
.ptg-disclaimer,
.ptg-bar-chart,
.ptg-bar-row,
.ptg-bar-track,
.ptg-bar-fill {
    box-sizing: border-box;
    max-width: 100%;
}

.ptg-main-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.ptg-input-col {
    position: sticky;
    top: 20px;
    min-width: 0;
}

.ptg-result-col {
    display: grid;
    gap: 12px;
    min-width: 0;
    scroll-margin-top: calc(var(--header-height, 56px) + 24px);
}

.ptg-input-section,
.ptg-result-hero,
.ptg-support-card,
.ptg-chart-section,
.ptg-table-section,
.ptg-section {
    border: 1px solid #e8e1d6;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(45, 42, 38, 0.06);
}

.ptg-input-section {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.ptg-input-title,
.ptg-section-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #2d2a26;
}

.ptg-tool-lead {
    margin: 8px 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #5f5a56;
}

.ptg-input-title i,
.ptg-section-title i {
    color: #b9843e;
}

.ptg-intro,
.ptg-note,
.ptg-section-help,
.ptg-hero-subtext {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #665f56;
}

.ptg-input-grid,
.ptg-chip-section {
    display: grid;
    gap: 8px;
}

.ptg-input-group,
.ptg-chip-block {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.ptg-label,
.ptg-chip-title,
.ptg-support-label,
.ptg-hero-eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
}

.ptg-input-unit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
}

.ptg-input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    border: 1px solid #d8d1c6;
    border-radius: 9px;
    background: #ffffff;
    color: #2d2a26;
    font-size: 13px;
    line-height: 1.4;
    padding: 8px 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ptg-input:hover {
    border-color: #c9ab79;
}

.ptg-input:focus {
    outline: none;
    border-color: #b9843e;
    box-shadow: 0 0 0 3px rgba(185, 132, 62, 0.12);
}

.ptg-input[aria-invalid="true"] {
    border-color: #c65b49;
    box-shadow: 0 0 0 3px rgba(198, 91, 73, 0.12);
    background: #fff7f5;
}

.ptg-unit-chip {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid #ddd4c8;
    border-radius: 10px;
    background: #f7f3ed;
    color: #5f5a56;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ptg-chip-section {
    grid-template-columns: 1fr;
}

.ptg-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ptg-chip {
    min-height: 34px;
    border: 1px solid #ddd4c8;
    background: #f7f3ed;
    color: #5f5a56;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ptg-chip:hover,
.ptg-chip:focus-visible {
    border-color: #b9843e;
    background: #fffaf3;
    color: #4d463c;
    outline: none;
    transform: translateY(-1px);
}

.ptg-chip.active {
    border-color: #b9843e;
    background: linear-gradient(135deg, #f8ecd7 0%, #f2dfbd 100%);
    color: #7a5521;
}

.ptg-btn-row {
    display: flex;
    gap: 6px;
}

.ptg-btn-row .tool-btn {
    flex: 1;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
}

.ptg-result-hero {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-color: #e8d3b4;
    background: linear-gradient(135deg, #fffaf1 0%, #f5ead8 100%);
    box-shadow: 0 12px 26px rgba(140, 99, 39, 0.12);
}

.ptg-hero-eyebrow {
    color: #8b6228;
}

.ptg-hero-value {
    font-size: clamp(24px, 3.2vw, 32px);
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #2d2a26;
    word-break: break-word;
}

.ptg-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.ptg-support-card {
    display: grid;
    gap: 4px;
    padding: 12px;
}

.ptg-support-card.is-highlight {
    border-color: #e8d3b4;
    background: linear-gradient(135deg, #fff8ea 0%, #f6ebd8 100%);
}

.ptg-support-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.01em;
    color: #2d2a26;
    word-break: break-word;
}

.ptg-chart-section,
.ptg-table-section,
.ptg-section {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.ptg-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.ptg-bar-chart {
    display: grid;
    gap: 10px;
}

.ptg-bar-empty {
    margin: 0;
    padding: 12px;
    border: 1px dashed #ddd4c8;
    border-radius: 12px;
    background: #faf7f2;
    color: #665f56;
    font-size: 13px;
    line-height: 1.6;
}

.ptg-bar-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.ptg-bar-label,
.ptg-bar-value {
    font-size: 12px;
    line-height: 1.4;
    color: #5f5a56;
}

.ptg-bar-label {
    font-weight: 700;
    color: #6a5a43;
}

.ptg-bar-value {
    min-width: 72px;
    text-align: right;
    font-weight: 700;
    color: #2d2a26;
}

.ptg-bar-track {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background: #f2ece1;
    overflow: hidden;
}

.ptg-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #dcb766 0%, #bc8434 100%);
}

.ptg-bar-row.is-current .ptg-bar-fill {
    background: linear-gradient(135deg, #e5c97d 0%, #cf9436 100%);
    box-shadow: inset 0 0 0 1px rgba(122, 85, 33, 0.14);
}

.ptg-bar-row.is-current .ptg-bar-label {
    color: #8b6228;
}

.ptg-table-wrap {
    overflow-x: auto;
}

.ptg-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

.ptg-table th,
.ptg-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee6da;
    text-align: left;
    font-size: 13px;
    line-height: 1.5;
    color: #2d2a26;
}

.ptg-table thead th {
    background: #faf6ef;
    color: #5f5a56;
    font-size: 12px;
    font-weight: 700;
}

.ptg-table tbody tr:last-child th,
.ptg-table tbody tr:last-child td {
    border-bottom: none;
}

.ptg-table tbody tr.is-current {
    background: #fffaf1;
}

.ptg-reference-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.ptg-reference-list li {
    color: #4e473f;
    font-size: 13px;
    line-height: 1.65;
}

.ptg-disclaimer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #e6dccf;
    border-radius: 12px;
    background: #faf7f2;
    color: #5f5a56;
    font-size: 13px;
    line-height: 1.6;
}

.ptg-disclaimer i {
    color: #b9843e;
    font-size: 16px;
    margin-top: 2px;
}

@media (max-width: 900px) {
    .ptg-main-layout {
        grid-template-columns: 1fr;
    }

    .ptg-input-col {
        position: static;
    }
}

@media (max-width: 768px) {
    .ptg-support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ptg-btn-row {
        flex-direction: column;
    }

    .ptg-btn-row .tool-btn {
        width: 100%;
    }

    .ptg-bar-row {
        grid-template-columns: 48px minmax(0, 1fr) 70px;
    }
}

@media (max-width: 480px) {
    .ptg-tool-lead {
        font-size: 13px;
    }

    .ptg-input-section,
    .ptg-chart-section,
    .ptg-table-section,
    .ptg-section {
        padding: 12px;
    }

    .ptg-support-grid {
        grid-template-columns: 1fr;
    }

    .ptg-hero-value {
        font-size: 26px;
    }

    .ptg-support-value {
        font-size: 17px;
    }

    .ptg-bar-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .ptg-bar-value {
        grid-column: 2;
        text-align: left;
        min-width: 0;
    }

    .ptg-disclaimer {
        grid-template-columns: 1fr;
    }
}
