.am-wrapper { width: 100%; }
.am-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) {
    .am-grid { grid-template-columns: 1fr 1fr; }
}

.am-form { display: flex; flex-direction: column; gap: 14px; }
.am-field { display: flex; flex-direction: column; gap: 4px; }
.am-field label { font-size: 13px; font-weight: 600; color: #374151; }
.am-field input,
.am-field select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}
.am-field input:focus,
.am-field select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }

.am-tenure-row { display: flex; gap: 8px; }
.am-tenure-row input { flex: 1; }
.am-tenure-row select { width: 110px; }

.am-btn {
    margin-top: 8px;
    padding: 12px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.am-btn:hover { background: #1d4ed8; }

.am-result { display: flex; flex-direction: column; gap: 12px; align-content: start; }
.am-result-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.am-result-label { font-size: 13px; color: #6b7280; }
.am-result-value { font-size: 20px; font-weight: 700; color: #111827; }

/* Schedule table */
.am-schedule-wrap { margin-top: 32px; }
.am-schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}
.am-schedule-title { font-size: 18px; font-weight: 700; color: #111827; margin: 0; }

.am-schedule-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.am-toggle-link {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
}
.am-toggle-link:hover { text-decoration: underline; }
.am-toggle-link.active { color: #2563eb; text-decoration: underline; }
.am-toggle-sep { color: #d1d5db; }

.am-table-scroll { overflow-x: auto; border: 1px solid #e5e7eb; border-radius: 10px; }
.am-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.am-table thead th {
    background: #1d4ed8;
    color: #fff;
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
    white-space: nowrap;
}
.am-table tbody td {
    padding: 10px 16px;
    color: #1f2937;
    white-space: nowrap;
}
.am-table tbody tr:nth-child(odd) { background: #eef2ff; }
.am-table tbody tr:nth-child(even) { background: #ffffff; }
.am-table tbody tr td:first-child { font-weight: 600; }