:root {
    --bg: #f5f7f3;
    --panel: #ffffff;
    --ink: #17211b;
    --muted: #647067;
    --line: #dfe6dd;
    --accent: #14735b;
    --accent-dark: #0f5544;
    --gold: #c99a2e;
    --danger: #b42318;
    --shadow: 0 18px 50px rgba(23, 33, 27, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background: #102820;
    color: #f4fbf7;
    padding: 28px 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.brand strong {
    display: block;
    font-size: 17px;
}

.brand small {
    display: block;
    color: rgba(244, 251, 247, 0.66);
    margin-top: 3px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(201, 154, 46, 0.16);
    color: #f6d572;
    font-size: 23px;
}

.nav {
    display: grid;
    gap: 8px;
}

.nav a {
    border-radius: 8px;
    color: rgba(244, 251, 247, 0.78);
    padding: 12px 14px;
}

.nav a.active,
.nav a:hover {
    background: rgba(246, 213, 114, 0.18);
    color: #ffffff;
}

.nav a.active {
    border-left: 4px solid var(--gold);
    box-shadow: inset 0 0 0 1px rgba(246, 213, 114, 0.3);
    font-weight: 800;
    padding-left: 10px;
}

.main {
    padding: 28px;
}

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

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 5px;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    font-size: 30px;
    margin-bottom: 0;
}

h2 {
    font-size: 18px;
    margin-bottom: 0;
}

.admin-actions {
    align-items: center;
    color: var(--muted);
    display: flex;
    gap: 14px;
    font-size: 14px;
}

.admin-identity {
    color: var(--muted);
    text-decoration: none;
}

.admin-identity:hover {
    color: var(--accent);
}

.logout-form {
    display: inline;
    margin: 0;
}

.inline-action-form {
    display: inline-flex;
    margin: 0;
}

.button {
    background: var(--accent);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    padding: 10px 14px;
}

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

.button.ghost {
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--accent);
}

.button.full {
    width: 100%;
}

.button.compact {
    padding: 7px 10px;
}

.stat-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-bottom: 18px;
}

.stat-card,
.panel,
.login-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 18px;
}

.stat-card span {
    color: var(--muted);
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
}

.stat-card strong {
    font-size: 28px;
}

.content-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
}

.panel {
    overflow: hidden;
}

.panel-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 14px 18px;
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.badge {
    background: #ecf7f2;
    border-radius: 999px;
    color: var(--accent-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

.link-button {
    background: transparent;
    border: 0;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0;
}

.list {
    display: grid;
}

.list-row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
}

.list-row:last-child {
    border-bottom: 0;
}

.list-row strong,
.list-row span {
    display: block;
}

.list-row span,
.list-row time {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.auth-page {
    align-items: center;
    display: grid;
    justify-items: center;
    padding: 24px;
}

.login-card {
    max-width: 420px;
    padding: 28px;
    width: 100%;
}

.auth-brand {
    color: var(--ink);
    margin-bottom: 24px;
}

.auth-brand small {
    color: var(--muted);
}

.alert {
    background: #fff1f0;
    border: 1px solid #ffd5d2;
    border-radius: 8px;
    color: var(--danger);
    padding: 12px;
}

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

label {
    color: var(--muted);
    display: grid;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
}

input,
select,
textarea {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 12px;
    width: 100%;
}

textarea {
    resize: vertical;
}

.header-actions,
.panel-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.panel-copy,
.field-hint {
    color: var(--muted);
    font-size: 13px;
    margin: 7px 0 0;
}

.flash-message {
    background: #ecf7f2;
    border: 1px solid #cfe9dd;
    border-radius: 8px;
    color: var(--accent-dark);
    margin-bottom: 18px;
    padding: 13px 16px;
}

.flash-message.error {
    background: #fff1f0;
    border-color: #ffd5d2;
    color: var(--danger);
}

.user-filter-form {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(130px, 1fr)) auto auto;
    margin: 20px 0;
}

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

.table-subtext {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.status-badge {
    background: #ecf7f2;
    border-radius: 999px;
    color: var(--accent-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

.status-badge.blocked {
    background: #fff1f0;
    color: var(--danger);
}

.status-badge.warning {
    background: #fff5dc;
    color: #8b6410;
    margin-top: 4px;
}

.audit-findings {
    color: var(--danger);
    margin: 8px 0 18px;
}

.audit-findings.warning-list {
    color: #8b6410;
}

.pagination {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.pagination span {
    color: var(--muted);
    font-size: 13px;
}

.user-detail-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 20px 0 0;
}

.user-detail-grid div {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.user-detail-grid dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.user-detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.user-status-panel {
    margin-top: 18px;
}

.user-profile-hero {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 22px;
}

.user-profile-main {
    align-items: center;
    display: flex;
    gap: 18px;
}

.user-avatar {
    align-items: center;
    background: #e4f1eb;
    border: 1px solid #cfe1d7;
    border-radius: 50%;
    color: var(--accent-dark);
    display: flex;
    flex: 0 0 84px;
    font-size: 30px;
    font-weight: 800;
    height: 84px;
    justify-content: center;
    overflow: hidden;
    width: 84px;
}

.user-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.user-profile-main h2 {
    margin-bottom: 10px;
}

.user-profile-labels,
.user-library-labels {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.user-profile-stats {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-bottom: 18px;
}

.user-profile-stats article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 7px;
    padding: 18px;
}

.user-profile-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.user-profile-stats strong {
    font-size: 25px;
}

.user-detail-grid .user-detail-wide {
    grid-column: span 3;
}

.user-profile-columns {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.compact-empty {
    padding: 28px 18px;
}

.user-library-panel {
    margin-top: 18px;
}

.user-library-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    padding: 0 18px 18px;
}

.user-library-card {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    display: grid;
    gap: 12px;
    grid-template-columns: 66px minmax(0, 1fr);
    overflow: hidden;
    padding: 9px;
}

.user-library-card img {
    border-radius: 7px;
    height: 88px;
    object-fit: cover;
    width: 66px;
}

.user-library-card > div {
    min-width: 0;
}

.user-library-card strong,
.user-library-card small {
    display: block;
}

.user-library-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-library-card small {
    color: var(--muted);
    font-size: 11px;
    margin: 6px 0 8px;
}

.user-library-labels span {
    background: #ecf7f2;
    border-radius: 999px;
    color: var(--accent-dark);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 7px;
    text-transform: uppercase;
}

.user-preference-list {
    display: grid;
    gap: 10px;
    padding: 0 18px 18px;
}

.user-preference-list div {
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 13px;
}

.user-preference-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.user-preference-list dd {
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
    margin: 0;
}

.system-status-panel {
    margin-bottom: 18px;
}

.system-status-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 18px;
}

.system-status-grid article {
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 14px;
}

.system-status-grid article > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.dashboard-activity-panel {
    margin-top: 18px;
}

.activity-type {
    background: var(--bg);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 8px;
    text-transform: uppercase;
}

.collection-panel {
    padding-bottom: 18px;
}

.category-card-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    padding: 18px;
}

.category-tile {
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    overflow: hidden;
}

.category-tile-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.category-tile-heading {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.category-tile h2,
.category-tile p {
    margin: 0;
}

.category-tile p {
    color: var(--muted);
    font-size: 13px;
}

.status-pill,
.type-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-pill {
    padding: 5px 8px;
}

.status-pill.active {
    background: #e9f8f0;
    color: #087443;
}

.status-pill.inactive {
    background: #f0f1f0;
    color: #69706b;
}

.type-badge {
    background: #fff5dc;
    color: #8b6410;
    padding: 6px 9px;
    width: max-content;
}

.category-tile-actions {
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-tile-actions form {
    display: contents;
}

.tile-button {
    background: #fff;
    border: 0;
    border-right: 1px solid var(--line);
    color: var(--accent);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    padding: 12px 7px;
    text-align: center;
}

.tile-button:last-child {
    border-right: 0;
}

.tile-button.upload {
    background: var(--accent);
    color: #fff;
}

.tile-button.delete {
    color: var(--danger);
}

.tile-button:disabled {
    color: #a3aaa5;
    cursor: not-allowed;
}

.form-panel {
    max-width: 780px;
}

.admin-form {
    gap: 18px;
    padding: 22px;
}

.form-submit {
    justify-self: start;
    min-width: 180px;
}

.search-form {
    align-items: center;
    display: flex;
    flex: 1;
    gap: 9px;
}

.search-form input {
    max-width: 420px;
}

.wallpaper-actions form {
    display: flex;
    flex: 1;
}

.button.danger {
    background: var(--danger);
}

.wallpaper-upload-form input[type="file"] {
    border-style: dashed;
    cursor: pointer;
    padding: 20px;
}

.upload-preview-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.upload-preview-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    min-width: 0;
    overflow: hidden;
}

.upload-preview-card img {
    display: block;
    height: 150px;
    object-fit: cover;
    width: 100%;
}

.upload-preview-card span {
    display: block;
    font-size: 11px;
    overflow: hidden;
    padding: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.edit-wallpaper-preview {
    align-items: center;
    display: flex;
    gap: 16px;
}

.edit-wallpaper-preview img {
    border-radius: 8px;
    height: 180px;
    object-fit: cover;
    width: 120px;
}

.edit-wallpaper-preview p {
    color: var(--muted);
    font-size: 13px;
}

.wallpaper-toolbar {
    align-items: end;
    display: flex;
    gap: 12px;
    padding: 18px;
}

.wallpaper-toolbar label {
    flex: 1;
}

.wallpaper-summary {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
    white-space: nowrap;
}

.wallpaper-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    padding: 0 18px 18px;
}

.wallpaper-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    min-width: 0;
    overflow: hidden;
}

.wallpaper-image-link {
    background: #e9eee9;
    display: block;
    height: 300px;
    overflow: hidden;
}

.wallpaper-image {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
    width: 100%;
}

.wallpaper-card:hover .wallpaper-image {
    transform: scale(1.025);
}

.wallpaper-info {
    display: grid;
    gap: 9px;
    padding: 13px;
}

.wallpaper-info strong {
    font-size: 14px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallpaper-meta {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 12px;
    justify-content: space-between;
}

.wallpaper-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallpaper-actions .button {
    font-size: 12px;
    padding: 8px 10px;
    width: 100%;
}

.wallpaper-actions .button.notify {
    background: var(--gold);
    grid-column: 1 / -1;
}

.wallpaper-actions .button.notify:hover {
    filter: brightness(0.92);
}

.notification-compose-panel {
    margin-bottom: 18px;
}

.notification-compose-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    padding: 20px;
}

.notification-wallpaper-preview {
    align-content: start;
    display: grid;
    gap: 10px;
}

.notification-wallpaper-preview img {
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    object-fit: cover;
    width: 100%;
}

.notification-wallpaper-preview span {
    color: var(--muted);
    font-size: 13px;
}

.notification-form {
    padding: 0;
}

.notification-form textarea {
    resize: vertical;
}

.notification-history-panel {
    margin-bottom: 18px;
}

.empty-state,
.loading-state {
    color: var(--muted);
    padding: 48px 18px;
    text-align: center;
}

.api-note {
    background: #ecf7f2;
    border: 1px solid #cfe9dd;
    border-radius: 8px;
    color: var(--accent-dark);
    font-size: 13px;
    margin-bottom: 18px;
    padding: 13px 16px;
}

.api-note code {
    overflow-wrap: anywhere;
}

.settings-panel {
    max-width: 960px;
}

.settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px;
}

.settings-section-title,
.settings-submit {
    grid-column: 1 / -1;
}

.settings-section-title {
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    margin: 8px 0 0;
    padding-bottom: 10px;
}

.toggle-setting {
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 14px;
}

.toggle-setting span {
    display: grid;
    gap: 4px;
}

.toggle-setting small {
    color: var(--muted);
    font-weight: 500;
}

.toggle-setting input {
    flex: 0 0 auto;
    height: 20px;
    width: 20px;
}

.settings-submit {
    display: flex;
    justify-content: flex-end;
}

.environment-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 18px 0 0;
}

.environment-grid div {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.environment-grid dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.environment-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.dua-filter-form {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(230px, 2fr) repeat(3, minmax(145px, 1fr)) auto auto;
    padding: 18px;
}

.dua-arabic-preview {
    direction: rtl;
    font-family: "Noto Naskh Arabic", "Geeza Pro", serif;
    font-size: 16px;
    line-height: 1.7;
    max-width: 340px;
    text-align: right;
}

.status-badge.inactive,
.status-badge.review-imported {
    background: #f0f1f0;
    color: #69706b;
}

.status-badge.review-under_review {
    background: #fff5dc;
    color: #8b6410;
}

.status-badge.review-rejected,
.status-badge.review-archived {
    background: #fff1f0;
    color: var(--danger);
}

.dua-workflow-bar {
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 14px 18px;
}

.dua-workflow-bar > div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dua-workflow-bar small {
    color: var(--muted);
}

.dua-editor-form {
    max-width: none;
}

.dua-form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dua-form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dua-arabic-input {
    font-family: "Noto Naskh Arabic", "Geeza Pro", serif;
    font-size: 24px;
    line-height: 1.9;
    text-align: right;
}

.dua-source-fields {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0;
    padding: 16px;
}

.dua-source-fields legend {
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
    padding: 0 7px;
}

.dua-review-panel,
.dua-audit-panel,
.dua-import-history {
    margin-top: 18px;
}

.dua-review-panel form {
    padding: 18px;
}

.dua-workflow-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dua-import-body {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.dua-import-body .alert {
    margin: 0;
}

.table-error {
    background: #fff1f0;
    color: var(--danger);
    font-size: 12px;
}

.dua-category-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
    padding: 18px;
}

.dua-category-card {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 16px;
}

@media (max-width: 1100px) {
    .dua-filter-form,
    .dua-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 18px;
    }

    .brand {
        margin-bottom: 18px;
    }

    .nav {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        overflow-x: auto;
    }

    .nav a {
        text-align: center;
        white-space: nowrap;
    }

    .stat-grid,
    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .system-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user-profile-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .main {
        padding: 18px;
    }

    .topbar,
    .admin-actions,
    .panel-header,
    .list-row,
    .wallpaper-toolbar,
    .user-profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions,
    .search-form {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .search-form input {
        max-width: none;
    }

    .category-card-grid {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .wallpaper-toolbar label,
    .wallpaper-summary {
        width: 100%;
    }

    .wallpaper-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 0 12px 12px;
    }

    .wallpaper-image-link {
        height: 240px;
    }

    .stat-grid,
    .content-grid,
    .settings-form,
    .notification-compose-grid,
    .user-detail-grid,
    .environment-grid,
    .system-status-grid,
    .user-profile-stats,
    .user-profile-columns {
        grid-template-columns: 1fr;
    }

    .user-profile-main {
        align-items: flex-start;
    }

    .user-detail-grid .user-detail-wide {
        grid-column: auto;
    }

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

    .dua-filter-form,
    .dua-form-grid,
    .dua-form-grid.two,
    .dua-category-grid {
        grid-template-columns: 1fr;
    }

    .dua-workflow-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .pagination {
        justify-content: flex-start;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
