.ui-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 18px 24px;
}

.ui-page--wide {
    max-width: 1600px;
}

.ui-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px 26px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #60a5fa 100%);
    color: #fff;
    box-shadow: 0 20px 40px rgba(15,23,42,0.12);
}

.ui-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -70px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 65%);
    pointer-events: none;
}

.ui-hero h1,
.ui-hero h2 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ui-hero h1 { font-size: clamp(2rem, 3vw, 2.4rem); }
.ui-hero h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.ui-hero p { margin: 8px 0 0; color: rgba(255,255,255,0.9); }

.ui-hero-meta {
    margin-top: 16px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.82);
    word-break: break-word;
}

.ui-status {
    margin-top: 12px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}

.ui-status.error {
    color: #fecaca;
}

.ui-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.ui-surface-card {
    background: var(--surface);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 24px 22px 20px;
    border: 1px solid var(--border);
}

.ui-surface-card:hover {
    box-shadow: var(--shadow-lg);
}

.ui-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.ui-search {
    min-width: 280px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.98rem;
    background: #fff;
}

.ui-search:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ui-table-shell {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.ui-table-shell table {
    width: 100%;
    border-collapse: collapse;
}

.ui-table-shell th,
.ui-table-shell td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.ui-table-shell thead th {
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    font-weight: 700;
}

.ui-table-shell tbody tr:hover {
    background: rgba(79, 70, 229, 0.05);
}

.ui-empty,
.ui-loading,
.ui-error {
    padding: 22px 18px;
    text-align: center;
}

.ui-loading {
    color: #1d4ed8;
    background: #eff6ff;
}

.ui-error {
    color: #991b1b;
    background: #fef2f2;
}

.ui-empty {
    color: #64748b;
}

.people-container--wide.ui-page .ui-hero {
    padding: 25px 30px;
    border-radius: 28px;
}

.people-container--wide.ui-page .ui-hero h2 {
    font-size: 28px;
}

.people-container--wide.ui-page .ui-hero .subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 0;
}

.people-container--wide.ui-page .ui-toolbar {
    padding: 25px 30px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.people-container--wide.ui-page .ui-toolbar .global-search-container {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
}

.people-container--wide.ui-page .ui-toolbar .global-search {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
}

.people-container--wide.ui-page .ui-table-shell {
    border-radius: 0;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
}

.people-container--wide.ui-page .ui-empty {
    display: none;
}
