.ui-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0 0 1.5rem;
}

.ui-page-header h1 {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.7rem, 2.6vw, 2.35rem);
    font-weight: 560;
    letter-spacing: -0.03em;
    color: var(--primary-color, #0E4160);
}

.ui-page-header p {
    margin: 0.35rem 0 0;
    color: var(--text-secondary, #6B7280);
}

.ui-page-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ui-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #E7F3F5;
    color: var(--primary-color, #0E4160);
    font-size: 0.85rem;
    font-weight: 650;
}

.ui-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
    border: 1px dashed var(--border-color, #E5E7EB);
    border-radius: 16px;
    background: var(--card-bg, #fff);
}

.ui-empty h2 {
    margin: 0 0 0.4rem;
    font-size: 1.25rem;
}

.ui-empty p {
    margin: 0;
    color: var(--text-secondary, #6B7280);
}

.ui-empty-action {
    display: inline-flex;
    margin-top: 1rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: var(--primary-color, #0E4160);
    color: #fff;
    text-decoration: none;
    font-weight: 650;
}

.ui-stat {
    display: grid;
    gap: 0.15rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md, 18px);
    background: var(--surface, var(--card-bg, #fff));
    border: 1px solid var(--border-color, #E5E7EB);
    box-shadow: var(--shadow-soft, none);
}

body.has-app-shell .btn {
    border-radius: 999px;
    min-height: 44px;
}

body.has-app-shell .btn-primary {
    background: linear-gradient(180deg, #1a6286, #0E4160);
    border-color: transparent;
    box-shadow: 0 10px 20px -14px #0E4160;
}

body.has-app-shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]),
body.has-app-shell select,
body.has-app-shell textarea {
    border-radius: 12px;
}

.ui-stat-label,
.ui-stat-hint {
    color: var(--text-secondary, #6B7280);
    font-size: 0.85rem;
}

.ui-stat-value {
    font-size: 1.55rem;
    color: var(--primary-color, #0E4160);
    letter-spacing: -0.03em;
}

[data-theme="dark"] .ui-badge {
    background: rgba(143, 203, 212, 0.16);
    color: #B7E0E6;
}

[data-theme="dark"] .ui-page-header h1,
[data-theme="dark"] .ui-stat-value {
    color: #B7E0E6;
}
