*{
    box-sizing: border-box;
}

html {
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

body {
    margin: 0;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.brand {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.muted {
    color: #6b7280;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    padding: 20px;
    margin-bottom: 16px;
}

.stack {
    display: grid;
    gap: 16px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.button {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid #111827;
    border-radius: 12px;
    background: #111827;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.button:hover {
    color: #ffffff;
    opacity: 0.92;
    text-decoration: none;
}

.button-secondary {
    background: #ffffff;
    color: #111827;
}

.flash-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: grid;
    gap: 10px;
}

.flash-item {
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    border-radius: 12px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
}

.avatar-fallback {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
    border: 1px solid #111827;
}

.section-title {
    margin: 0 0 12px;
    font-size: 20px;
}

.field {
    margin-bottom: 14px;
}

.label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.input,
.select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    font: inherit;
}

.meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.meta-list li {
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e5e7eb;
    font-size: 12px;
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: #f9fafb;
    font-size: 14px;
}

.empty {
    padding: 14px;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    color: #6b7280;
}

.small {
    font-size: 14px;
}

.code-box {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}