.ecm-frontend-wrap {
    max-width: 880px;
    margin: 30px auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 0 10px;
}
.ecm-frontend-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 22px 22px 20px;
    box-shadow: 0 20px 60px rgba(15,23,42,0.14);
    border: 1px solid #e5e7eb;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}
.ecm-frontend-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(59,130,246,0.16), transparent 55%),
        radial-gradient(circle at bottom right, rgba(129,140,248,0.14), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}
.ecm-frontend-card > * {
    position: relative;
    z-index: 1;
}
.ecm-frontend-title {
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 4px;
    text-align: center;
    letter-spacing: 0.02em;
}
.ecm-frontend-sub {
    font-size: 13px;
    color: #4b5563;
    text-align: center;
    margin-bottom: 18px;
}
.ecm-frontend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
}
.ecm-frontend-field {
    display: flex;
    flex-direction: column;
}
.ecm-frontend-field label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ecm-frontend-field input,
.ecm-frontend-field select {
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    background: #f9fafb;
    transition: all 0.15s ease;
}
.ecm-frontend-field input:focus,
.ecm-frontend-field select:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 1px #2563eb22;
}
.ecm-frontend-actions {
    margin-top: 18px;
    text-align: center;
}
.ecm-frontend-actions button {
    padding: 9px 32px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 16px 30px rgba(37,99,235,0.4);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}
.ecm-frontend-actions button:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}
.ecm-frontend-result-card {
    margin-top: 18px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 14px 16px 12px;
    background: #f9fafb;
}
.ecm-frontend-row {
    display: flex;
    gap: 14px;
    margin-bottom: 3px;
    font-size: 13px;
}
.ecm-frontend-row strong {
    min-width: 130px;
    color: #111827;
}
.ecm-frontend-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}
.ecm-frontend-no-result {
    margin-top: 16px;
    font-size: 13px;
    text-align: center;
    color: #6b7280;
}
.ecm-frontend-links a {
    margin-right: 10px;
    font-size: 12px;
    text-decoration: none;
    color: #1d4ed8;
    font-weight: 500;
}
.ecm-frontend-links a:hover {
    text-decoration: underline;
}
.ecm-print-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 26px;
    border: 1px solid #d1d5db;
    box-shadow: 0 18px 55px rgba(15,23,42,0.15);
    margin-bottom: 20px;
}
.ecm-print-header {
    text-align: center;
    margin-bottom: 12px;
}
.ecm-print-logo img {
    max-height: 75px;
    margin-bottom: 6px;
}
.ecm-print-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}
.ecm-print-subtitle {
    font-size: 13px;
    color: #4b5563;
    margin-top: 2px;
}
.ecm-print-info {
    font-size: 11px;
    color: #4b5563;
    margin-top: 3px;
}
.ecm-print-body {
    margin-top: 14px;
    font-size: 13px;
}
.ecm-print-body .ecm-frontend-row strong {
    min-width: 150px;
}
.ecm-print-actions {
    margin-top: 16px;
    text-align: right;
}
.ecm-print-actions button {
    padding: 7px 20px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}
.ecm-subjects-print-wrapper {
    margin-top: 16px;
}
.ecm-subjects-print-wrapper h4 {
    margin: 0 0 6px;
    font-size: 14px;
}
.ecm-subjects-print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.ecm-subjects-print-table th,
.ecm-subjects-print-table td {
    border: 1px solid #e5e7eb;
    padding: 4px 6px;
    text-align: left;
}
.ecm-subjects-print-table th {
    background: #e5e7eb;
}
@media (max-width: 640px) {
    .ecm-frontend-grid {
        grid-template-columns: 1fr;
    }
    .ecm-frontend-row {
        flex-direction: column;
    }
    .ecm-print-body .ecm-frontend-row strong {
        min-width: auto;
    }
}
@media print {
    .ecm-frontend-card,
    .ecm-frontend-sub,
    .ecm-frontend-title,
    .ecm-frontend-actions,
    .site-header,
    .site-footer,
    nav,
    .widget-area {
        display: none !important;
    }
    .ecm-print-card {
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
    }
    .ecm-print-actions {
        display: none !important;
    }
    body {
        background: #ffffff !important;
    }
}