.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #e8eef5 100%);
}

.auth-shell {
    width: min(420px, 100%);
}

.login-panel {
    padding: 28px;
    box-shadow: var(--shadow);
}

.login-brand {
    color: var(--text);
    margin-bottom: 24px;
}

.login-brand small {
    color: var(--muted);
}

.login-panel h1 {
    margin: 0;
    font-size: 28px;
}

.alert {
    padding: 12px 14px;
    margin: 18px 0;
    border-radius: 8px;
    font-weight: 700;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background: #e0f2fe;
    color: #075985;
}

.alert-info form {
    margin-top: 10px;
}

.link-cell small {
    display: block;
    margin-top: 4px;
}

.row-actions {
    position: relative;
}

.row-actions summary {
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.row-actions summary::-webkit-details-marker {
    display: none;
}

.row-actions > div {
    position: absolute;
    right: 0;
    z-index: 10;
    display: grid;
    gap: 10px;
    width: min(320px, 80vw);
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.row-actions form {
    display: grid;
    gap: 8px;
}

.row-actions label {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.row-actions input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.audit-details summary {
    cursor: pointer;
    font-weight: 800;
}

.audit-details div {
    display: grid;
    gap: 8px;
    width: min(520px, 80vw);
}

.audit-details pre {
    max-height: 180px;
    overflow: auto;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-muted);
    white-space: pre-wrap;
    word-break: break-word;
}

.menu-toggle {
    display: block;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
}

.mobile-overlay {
    display: none;
}

