:root {
    color-scheme: light;
    --page: #edf2f7;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #657384;
    --line: #dbe4ee;
    --accent: #2563eb;
    --accent-dark: #1746a2;
    --danger: #b42318;
    --danger-bg: #fff1f0;
    --shadow: 0 16px 42px rgba(31, 45, 61, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: "Segoe UI", Segoe, Roboto, Arial, sans-serif;
    line-height: 1.5;
}

.lookup-shell {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
}

.lookup-header,
.lookup-form,
.profile-panel,
.notice {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.lookup-header {
    margin-bottom: 18px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-size: 42px;
    line-height: 1.08;
}

.lookup-header p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.lookup-form {
    margin-bottom: 18px;
    padding: 20px;
}

.lookup-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

select,
button {
    min-height: 44px;
    border-radius: 6px;
    font: inherit;
}

select {
    width: 100%;
    padding: 0 12px;
    border: 1px solid #b8c5d4;
    background: #ffffff;
    color: var(--text);
}

button {
    padding: 0 18px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: var(--accent-dark);
}

.profile-panel {
    overflow: hidden;
    min-height: 600px;
}

.profile-panel iframe {
    display: block;
    width: 100%;
    min-height: 900px;
    border: 0;
}

.notice {
    margin-bottom: 18px;
    padding: 18px;
    font-weight: 700;
}

.notice-error {
    border-color: #f4b8b0;
    background: var(--danger-bg);
    color: var(--danger);
}

@media (max-width: 620px) {
    .lookup-shell {
        width: min(100% - 20px, 1040px);
        padding: 10px 0 24px;
    }

    .lookup-header,
    .lookup-form {
        padding: 18px;
    }

    h1 {
        font-size: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
