/* sigil.cx — roundcube-inspired dark webmail */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0a0a;
    --surface: #111;
    --surface2: #181818;
    --border: #2a2a2a;
    --text: #e0e0e0;
    --text-dim: #888;
    --text-bright: #fff;
    --accent: #4a9eff;
    --danger: #ff4a4a;
    --success: #4aff7a;
    --row-hover: #1a1a2a;
    --selected: #1a2535;
    --font: "IBM Plex Mono", "Courier New", monospace;
    --font-size: 13px;
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font: var(--font-size)/1.5 var(--font);
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.admin-body {
    overflow: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- login ---- */

.login-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-shell {
    width: min(620px, calc(100% - 32px));
    position: relative;
    z-index: 1;
}

.login-box {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 38px 40px 34px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.login-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.login-brand {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: 0.04em;
    line-height: 1;
}

.login-sub {
    color: var(--text-dim);
    font-size: 12px;
    text-align: right;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-form {
    display: grid;
    gap: 10px;
}

.login-form label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

/*
 * Turnstile renders in a cross-origin iframe; inner #content flex cannot be styled here.
 * Center the widget on the page the usual way: flex row + margin auto on .cf-turnstile
 * (same idea as common Turnstile CSS tips, e.g. WP forums).
 */
.login-turnstile-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 8px 0 0;
}

.login-turnstile-wrap .cf-turnstile,
.login-form > .cf-turnstile {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
    max-width: 100%;
}

.login-turnstile-wrap .cf-turnstile iframe {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border: 0;
}

/* ---- form elements ---- */

input, select, button, .btn {
    font: inherit;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    padding: 8px 12px;
    width: 100%;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--accent);
}

button, .btn {
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    background: var(--surface2);
    color: var(--text-bright);
    border-color: var(--border);
    text-transform: lowercase;
    display: inline-block;
}

button:hover, .btn:hover {
    background: var(--border);
    text-decoration: none;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-dim);
}

.btn-ghost:hover {
    color: var(--text-bright);
    background: transparent;
}

.btn-claim {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.btn-claim:hover {
    opacity: 0.85;
    background: var(--accent);
}

.btn-danger {
    color: var(--danger);
    border-color: var(--danger);
    background: transparent;
}

.btn-danger:hover {
    background: var(--danger);
    color: #000;
}

.btn-inline {
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 2px 6px;
    font-size: 16px;
    line-height: 1;
    width: auto;
    cursor: pointer;
}

.btn-inline:hover { color: var(--danger); }

/* ---- flash ---- */

.flash-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    display: grid;
    gap: 8px;
    width: min(360px, calc(100vw - 24px));
    pointer-events: none;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.flash-stack-hide {
    opacity: 0;
    transform: translateY(8px);
}

.flash {
    padding: 8px 12px;
    font-size: 12px;
    border: 1px solid var(--border);
    background: var(--surface2);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
    pointer-events: auto;
}

.flash-error { border-color: var(--danger); color: var(--danger); }
.flash-success { border-color: var(--success); color: var(--success); }

/* ---- app layout ---- */

.app-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    height: 100vh;
    min-height: 100dvh;
}

/* ---- sidebar ---- */

.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-bright);
    padding: 16px 16px 4px;
    letter-spacing: 0.04em;
    text-decoration: none;
    display: block;
}

a.sidebar-brand:hover { text-decoration: none; }

.sidebar-user {
    padding: 0 16px 12px;
    font-size: 12px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.sidebar-nav {
    flex: 1;
    padding: 8px 0;
}

.sidebar-label {
    padding: 8px 16px 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

.sidebar-link {
    display: block;
    padding: 6px 16px;
    font-size: 12px;
    color: var(--text);
    text-decoration: none;
    border-left: 3px solid transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-link:hover {
    background: var(--surface2);
    text-decoration: none;
}

.sidebar-link.active {
    border-left-color: var(--accent);
    background: var(--selected);
    color: var(--text-bright);
}

.sidebar-home {
    margin: 0 10px 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-left-width: 1px;
}

.sidebar-home.active {
    border-left-color: var(--border);
}

.sidebar-empty {
    padding: 6px 16px;
    font-size: 12px;
    color: var(--text-dim);
}

.sidebar-logout {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

/* ---- toolbar ---- */

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 48px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    gap: 12px;
    flex-shrink: 0;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.toolbar-back {
    font-size: 18px;
    color: var(--text-dim);
    text-decoration: none;
    line-height: 1;
}

.toolbar-back:hover { color: var(--text-bright); text-decoration: none; }

.toolbar-title {
    font-weight: 600;
    color: var(--text-bright);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toolbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.toolbar-actions form { display: inline; }

.toolbar-actions .btn,
.toolbar-actions button {
    width: auto;
    padding: 5px 14px;
    font-size: 12px;
}

.toolbar-actions select {
    width: auto;
    padding: 5px 28px 5px 10px;
    font-size: 12px;
}

.timer-form {
    display: inline;
}

/* ---- badge ---- */

.badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.badge-public { color: var(--text-dim); }
.badge-private { color: var(--accent); border-color: var(--accent); }
.badge-admin { color: #ffd36a; border-color: #ffd36a; }

/* ---- main area ---- */

.main-area {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    position: relative;
    z-index: 1;
}

/* ---- dashboard content ---- */

.dash-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.admin-body .dash-content {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 20px;
}

.dash-grid {
    display: grid;
    grid-template-columns: minmax(360px, 520px) minmax(420px, 1fr);
    gap: 20px;
    align-items: start;
}

.open-inbox-box,
.dash-claims {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 24px;
}

.open-inbox-title {
    font-weight: 600;
    color: var(--text-bright);
    font-size: 15px;
    margin-bottom: 6px;
}

.open-inbox-desc {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 16px;
    line-height: 1.6;
}

.open-inbox-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.open-inbox-form .btn { width: auto; flex-shrink: 0; }

.open-inbox-field {
    display: flex;
    flex: 1;
    border: 1px solid var(--border);
    background: var(--bg);
    min-width: 0;
}

.open-inbox-field input {
    border: none;
    background: transparent;
    flex: 1;
    min-width: 0;
}

.open-inbox-domain {
    padding: 8px 12px;
    color: var(--text-dim);
    white-space: nowrap;
    border-left: 1px solid var(--border);
    font-size: 12px;
    display: flex;
    align-items: center;
}

.dash-claims-title {
    font-weight: 600;
    color: var(--text-bright);
    font-size: 14px;
    margin-bottom: 10px;
}

.dash-empty {
    color: var(--text-dim);
    font-size: 12px;
    padding: 10px 0 2px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 20px;
    flex: 0 0 auto;
    align-items: stretch;
}

.admin-panel,
.admin-section {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 20px 24px;
}

.admin-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}

.admin-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: min(44vh, 420px);
}

.admin-form {
    display: grid;
    gap: 10px;
}

.admin-form label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.admin-maintenance-form {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.admin-maintenance-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: var(--text-bright);
}

.admin-maintenance-text,
.admin-maintenance-pipe {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-maintenance-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-switch {
    position: relative;
    width: 42px;
    height: 20px;
    border: 1px solid var(--border);
    background: var(--bg);
}

.admin-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: var(--text-dim);
    transition: transform 120ms ease, background-color 120ms ease;
}

.admin-maintenance-row input:checked + .admin-switch::after {
    transform: translateX(22px);
    background: var(--text-bright);
}

.admin-maintenance-row input:checked + .admin-switch {
    background: var(--surface2);
}

.admin-inspect-box {
    border: 1px solid var(--border);
    background: var(--bg);
    padding: 16px;
    margin-bottom: 20px;
}

.admin-inspect-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-inspect-copy {
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.5;
}

.admin-open-inbox-form .btn {
    min-width: 108px;
}

.admin-subsection + .admin-subsection,
.admin-subsection + .admin-edit-box {
    margin-top: 20px;
}

.admin-subsection {
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.admin-subheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.admin-subheader-title {
    display: flex;
    align-items: center;
    min-width: 0;
}

.admin-subheader .dash-claims-title {
    margin-bottom: 0;
}

.admin-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

.admin-search-form input {
    min-width: 220px;
}

.admin-search-form .btn {
    width: auto;
    flex-shrink: 0;
}

.admin-actions-head {
    text-align: right;
    width: 110px;
}

.admin-actions-cell {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    height: 100%;
}

.btn-mini {
    width: auto;
    padding: 3px 10px;
    font-size: 11px;
    min-width: 48px;
}

.admin-actions-cell form {
    display: flex;
    align-items: center;
    margin: 0;
}

.admin-actions-cell-single {
    justify-content: center;
}

.admin-edit-box {
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.admin-edit-form {
    max-width: 460px;
}

.admin-edit-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-edit-actions .btn {
    width: auto;
}

.admin-table-wrap {
    overflow: auto;
    min-height: 0;
    border-top: 1px solid var(--border);
}

.admin-table-wrap-users {
    flex: 1 1 auto;
    max-height: none;
}

.admin-table-wrap-claims {
    flex: 1 1 auto;
    max-height: 100%;
    min-height: 0;
}

.site-modal-backdrop,
.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: grid;
    place-items: center;
    z-index: 20;
    padding: 20px;
}

.site-modal-backdrop[hidden],
.admin-modal-backdrop[hidden] {
    display: none !important;
}

.site-modal,
.admin-modal {
    width: min(520px, 100%);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 20px 24px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.site-modal-head,
.admin-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.site-modal-head .dash-claims-title,
.admin-modal-head .dash-claims-title {
    margin-bottom: 0;
}

.site-modal-close,
.admin-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.site-modal-close:hover,
.admin-modal-close:hover {
    color: var(--text-bright);
    background: var(--surface2);
    text-decoration: none;
}

.site-modal-copy {
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 16px;
}

body.modal-open {
    overflow: hidden;
}

/* ---- inbox layout (list + reading pane) ---- */

.inbox-layout {
    display: grid;
    grid-template-columns: minmax(300px, 460px) 8px minmax(340px, 1fr);
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.msg-list-pane {
    overflow-y: auto;
    min-width: 0;
}

.pane-hint {
    padding: 8px 16px;
    font-size: 11px;
    color: var(--text-dim);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.msg-read-pane {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pane-divider {
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    cursor: col-resize;
    position: relative;
}

.pane-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 42px;
    background: var(--border);
    transform: translate(-50%, -50%);
}

/* ---- message table ---- */

.msg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
}

.msg-table thead th {
    position: sticky;
    top: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 12px;
    text-align: left;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.msg-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.msg-row.clickable { cursor: pointer; }
.msg-row:hover { background: var(--row-hover); }
.msg-row.selected { background: var(--selected); }

.col-from { width: 30%; }
.col-subject { width: auto; }
.date-head { text-align: left; }
.col-date {
    width: 116px;
    text-align: left;
    color: var(--text-dim);
    padding-left: 6px;
}
.col-action { width: 36px; text-align: center; }
.table-date {
    width: 150px;
    color: var(--text-dim);
    white-space: nowrap;
}

.empty-inbox {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}

/* ---- reading pane ---- */

.read-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.read-subject {
    font-weight: 600;
    color: var(--text-bright);
    font-size: 15px;
    margin-bottom: 6px;
}

.read-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-dim);
    flex-wrap: wrap;
}

.read-body {
    padding: 20px;
    flex: 1;
    font-size: 13px;
    line-height: 1.65;
    color: var(--text);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.read-body p:first-child { margin-top: 0; }
.read-body p:last-child { margin-bottom: 0; }
.read-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}
.read-body a {
    color: var(--text-bright);
    text-decoration: underline;
}
.read-body table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}
.read-body td,
.read-body th {
    vertical-align: top;
}
.sigil-inline-images {
    display: grid;
    gap: 14px;
}
.sigil-image-block {
    border: 1px solid var(--border);
    padding: 12px;
    background: var(--surface);
}
.sigil-image-caption {
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 12px;
}

.read-placeholder {
    display: grid;
    place-items: center;
    flex: 1;
    color: var(--text-dim);
    font-size: 13px;
}

body.is-resizing {
    user-select: none;
    cursor: col-resize;
}

.maintenance-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.maintenance-shell {
    width: min(640px, calc(100% - 32px));
    position: relative;
    z-index: 1;
}

.maintenance-box {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 34px 36px 30px;
    text-align: center;
}

.maintenance-inner {
    max-width: 320px;
    margin: 0 auto;
}

.maintenance-kicker {
    color: var(--text-dim);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.maintenance-brand-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.maintenance-brand {
    font-size: 30px;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: 0.04em;
    line-height: 1;
}

.maintenance-title {
    font-size: 18px;
    line-height: 1.2;
    color: var(--text-bright);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.maintenance-copy {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* ---- responsive ---- */

@media (max-width: 1180px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-panel {
        height: auto;
    }
}

@media (max-width: 860px) {
    .app-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: auto;
        min-height: 100dvh;
    }

    .sidebar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        border-right: 0;
        border-bottom: 1px solid var(--border);
        overflow: visible;
    }

    .sidebar-user {
        border-bottom: 0;
        padding-bottom: 10px;
    }

    .sidebar-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 12px 12px;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        flex: none;
    }

    .sidebar-label,
    .sidebar-empty {
        display: none;
    }

    .sidebar-link,
    .sidebar-home {
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        margin: 0;
        padding: 8px 12px;
        border: 1px solid var(--border);
        border-left-width: 1px;
        flex: 0 0 auto;
    }

    .sidebar-link.active,
    .sidebar-home.active {
        border-left-color: var(--accent);
    }

    .sidebar-logout {
        border-top: 0;
        padding-top: 10px;
    }

    .sidebar-logout .btn {
        width: auto;
        min-width: 92px;
    }

    .dash-grid,
    .inbox-layout {
        grid-template-columns: 1fr;
    }

    .admin-body .dash-content {
        overflow: auto;
    }

    .admin-section {
        min-height: auto;
    }

    .admin-table-wrap-users,
    .admin-table-wrap-claims {
        max-height: none;
    }

    .msg-list-pane {
        border-right: none;
        max-height: 45vh;
    }

    .pane-divider {
        display: none;
    }

    .msg-read-pane {
        border-top: 1px solid var(--border);
    }

    .open-inbox-form {
        flex-direction: column;
    }

    .open-inbox-form .btn {
        width: 100%;
    }

    .toolbar {
        position: sticky;
        top: 0;
        z-index: 5;
    }
}

@media (max-width: 480px) {
    .flash-stack {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
    }

    .login-shell {
        width: calc(100% - 20px);
    }

    .login-box {
        padding: 24px 18px 20px;
    }

    .login-brand-row {
        display: block;
    }

    .login-sub {
        text-align: left;
        margin-top: 6px;
    }

    .toolbar {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 12px;
    }

    .toolbar-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .toolbar-actions .btn,
    .toolbar-actions button,
    .toolbar-actions select {
        width: 100%;
    }

    .dash-content {
        padding: 12px;
    }

    .open-inbox-box,
    .dash-claims,
    .admin-panel,
    .admin-section {
        padding: 16px;
    }

    .read-header,
    .read-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .admin-subheader,
    .admin-search-form,
    .admin-edit-actions {
        display: grid;
    }

    .admin-inspect-head {
        display: block;
    }

    .admin-search-form input,
    .admin-search-form .btn,
    .admin-edit-actions .btn,
    .admin-open-inbox-form .btn {
        width: 100%;
        min-width: 0;
    }

    .admin-modal {
        padding: 18px 16px;
    }
}
