:root {
    --bg: #f5f7f9;
    --card: #ffffff;
    --text: #1f2933;
    --muted: #64748b;
    --primary: #007c91;
    --primary-dark: #005f70;
    --line: #d9e2ec;
    --soft: #eef5f7;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0 28px 48px 28px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}

h1 {
    text-align: center;
    color: #1f4f3a;
    font-size: 38px;
    margin: 34px 0 10px 0;
    font-weight: 700;
}

h2 {
    color: var(--primary-dark);
    font-size: 17px;
    margin-top: 0;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

form {
    max-width: 1080px;
    margin: 24px auto 28px auto;
    background: transparent;
}

.search-grid {
    gap: 28px !important;
    max-width: 1080px !important;
}

.search-section {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.form-row {
    margin-bottom: 14px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
}

input[type="text"] {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #b8c7d3;
    border-radius: 7px;
    font-size: 14px;
    background: #ffffff;
    box-sizing: border-box;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 124, 145, 0.13);
}

.buttons {
    text-align: center;
    margin: 22px 0 10px 0;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 11px 48px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: var(--primary-dark);
}

.buttons a {
    margin-left: 18px;
    color: var(--muted);
}

p {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

table {
    width: 100%;
    max-width: 1280px;
    margin: 18px auto 28px auto;
    border-collapse: collapse;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

th {
    background: var(--primary);
    color: white;
    text-align: left;
    padding: 10px 12px;
    font-weight: 700;
    white-space: nowrap;
}

td {
    padding: 9px 12px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
}

tr:nth-child(even) td {
    background: #fafcfd;
}

.results-table {
    font-size: 13px;
}

.results-table td {
    line-height: 1.28;
}

.results-table td:nth-child(1),
.results-table th:nth-child(1) {
    white-space: nowrap;
    width: 95px;
}

.results-table td:nth-child(9) {
    font-size: 12.5px;
    color: #334155;
}

.view-button {
    display: inline-block;
    background: var(--primary);
    color: #ffffff !important;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.view-button:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.accepted-name {
    font-weight: bold;
    color: var(--primary-dark);
}

td:first-child,
th:first-child {
    white-space: nowrap;
}

td:last-child {
    font-size: 13px;
}

@media (max-width: 800px) {
    body {
        padding: 0 14px 36px 14px;
    }

    h1 {
        font-size: 28px;
    }

    .search-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
.app-header {
    max-width: 1180px;
    margin: 22px auto 10px auto;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-title {
    font-size: 28px;
    font-weight: 800;
    color: #1f4f3a;
}

.brand-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-top: 2px;
}

.top-nav {
    display: flex;
    gap: 18px;
    font-weight: 700;
}

.top-nav a {
    color: var(--primary-dark);
}

.intro {
    max-width: 1080px;
    margin: 26px auto 10px auto;
    text-align: center;
}

.intro h1 {
    margin: 0 0 8px 0;
    font-size: 34px;
}

.intro p {
    margin: 0 auto;
    color: var(--muted);
    font-size: 15px;
}

@media (max-width: 800px) {
    .app-header {
        display: block;
        text-align: center;
    }

    .top-nav {
        justify-content: center;
        margin-top: 14px;
    }
}
.record-actions {
    max-width: 1080px;
    margin: 20px auto;
    display: flex;
    gap: 18px;
    font-weight: 700;
}

.record-layout {
    max-width: 1180px;
    margin: 20px auto 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

.record-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.record-card-wide {
    grid-column: span 3;
}

.record-field {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 18px;
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
}

.record-field:last-child {
    border-bottom: none;
}

.record-field span {
    color: var(--muted);
    font-weight: 700;
}

.record-field strong {
    font-weight: 500;
    color: var(--text);
}

@media (max-width: 800px) {
    .record-layout {
        grid-template-columns: 1fr;
    }

    .record-card-wide {
        grid-column: span 1;
    }

    .record-field {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
.record-layout {
    max-width: 1080px;
    margin: 20px auto 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.record-card-wide {
    grid-column: span 2;
}
.search-help {
    width: fit-content;
    max-width: 900px;
    margin: 0 auto 28px auto;
    padding: 9px 16px;
    text-align: center;
    color: #46606f;
    background: #eef7f8;
    border: 1px solid #cfe4e8;
    border-radius: 999px;
    font-size: 13.5px;
    font-style: italic;
}
.app-footer {
    max-width: 1080px;
    margin: 40px auto 10px auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #b8c7d3;
    border-radius: 7px;
    font-size: 14px;
    background: #ffffff;
    box-sizing: border-box;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 124, 145, 0.13);
}