/* Model specs - button + dialog */
.mspec-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 4px;
    padding: 9px 16px;
    border: 1px solid #2b3a55;
    border-radius: 4px;
    background: #fff;
    color: #2b3a55;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.mspec-btn:hover,
.mspec-btn:focus-visible {
    background: #2b3a55;
    color: #fff;
    outline: none;
}
.mspec-btn-wrap { width: 100%; }

.mspec-dialog {
    width: min(760px, calc(100vw - 32px));
    max-height: min(86vh, 900px);
    padding: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    color: #222;
    background: #fff;
    overflow: hidden;
}
.mspec-dialog[open] { display: flex; flex-direction: column; }
.mspec-dialog::backdrop { background: rgba(10, 14, 22, .6); }
.mspec-noscroll { overflow: hidden; }

.mspec-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e6e6e6;
}
.mspec-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b7280;
}
.mspec-name {
    margin-top: 2px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: #111;
}
.mspec-close {
    flex: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f2f3f5;
    color: #333;
    font-size: 24px;
    line-height: 36px;
    cursor: pointer;
}
.mspec-close:hover { background: #e3e5e8; }

.mspec-body {
    padding: 4px 22px 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mspec-section h3 {
    margin: 18px 0 6px;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #2b3a55;
}
.mspec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.mspec-table th,
.mspec-table td {
    padding: 9px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
    line-height: 1.45;
}
.mspec-table th {
    width: 42%;
    padding-right: 16px;
    font-weight: 600;
    color: #555;
}
.mspec-table tr:last-child th,
.mspec-table tr:last-child td { border-bottom: 0; }
.mspec-note {
    margin: 16px 0 0;
    font-size: 12px;
    color: #888;
}

@media (max-width: 560px) {
    .mspec-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    .mspec-head { padding: 14px 16px 12px; }
    .mspec-body { padding: 0 16px 16px; }
    .mspec-name { font-size: 17px; }
    .mspec-table th,
    .mspec-table td { display: block; width: auto; padding: 0; border: 0; }
    .mspec-table th { padding-top: 10px; font-size: 12px; }
    .mspec-table td { padding-bottom: 10px; border-bottom: 1px solid #eee; }
}
