:root {
    --white: #ffffff;
    --board: #f7f9fc;
    --card: #ffffff;
    --text: #172033;
    --muted: #667085;
    --line: #e4e7ec;
    --line-strong: #cbd5e1;
    --primary: #076507;
    --primary-soft: #e8f0ff;
    --danger: #dc2626;
    --success: #15803d;
    --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    --soft-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    --radius: 15px;
    --pinned: rgba(255, 56, 56, 0.55);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
    color: var(--text);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.nav-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.logo-box {
    width: 170px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.logo-placeholder {
    font-weight: 950;
    color: var(--primary);
    letter-spacing: -0.06em;
}

.brand-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: -0.03em;
    color: #076507;
    
}

.brand-subtitle {
    margin: 2px 0 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    font-weight: 850;
    text-decoration: none;
    color: #334155;
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: #d7e3ff;
}

.nav-link.admin {
    background: #111827;
    color: white;
}

.page {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 34px 0 60px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 16px;
    color: #334155;
    font-weight: 900;
    white-space: nowrap;
}

.board-shell {
    margin-top: 24px;
    background: var(--board);
    border: 1px solid var(--line-strong);
    border-radius: 23px;
    padding: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), var(--shadow);
}

.board-toolbar {
    display: grid;
    grid-template-columns: 1fr 190px auto auto;
    gap: 12px;
    margin-bottom: 18px;
    align-items: end;
}

.admin-layout {
    display: grid;
    grid-template-columns: calc(40% + 100px) minmax(0, calc(60% - 100px));
    gap: 22px;
    align-items: start;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    padding: 24px;
}

.card h2 {
    margin: 0 0 16px;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 900;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 13px 14px;
    font: inherit;
    color: var(--text);
    background: #ffffff;
    outline: none;
    transition: 0.18s ease;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.field { margin-bottom: 15px; }

.checkbox-row,
.admin-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 16px;
    font-weight: 850;
    color: #334155;
}

.checkbox-row input,
.admin-toggle input {
    width: 19px;
    height: 19px;
}

.public-expired-toggle {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 850;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
}

.public-expired-toggle input {
    width: 18px;
    height: 18px;
}

.button {
    border: 0;
    border-radius: 7px;
    padding: 12px 16px;
    font-weight: 900;
    cursor: pointer;
    font: inherit;
    transition: 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.button-primary {
    background: var(--primary);
    color: white;
}

.button-primary:hover { background: #074707; }

.button-dark {
    background: #111827;
    color: white;
}

.button-muted {
    background: #edf2f7;
    color: #334155;
}

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

.button-edit {
    background: var(--primary-soft);
    color: var(--primary);
}

.notice {
    border-radius: 7px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 800;
}

.notice-error { background: #fee2e2; color: #991b1b; }
.notice-success { background: #dcfce7; color: var(--success); }

.announcement-list {
    display: grid;
    gap: 10px;
}

.announcement {
    background: white;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 15px 16px;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.045);
    position: relative;
    overflow: hidden;
}
.announcement-list .announcement:nth-child(odd) {
    background: #f8fafc;
}

.announcement-list .announcement:nth-child(even) {
    background: #ffffff;
}

.announcement.pinned {
    border-color: rgba(29, 78, 216, 0.35);
}

.announcement.pinned::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: var(--pinned);
}

.announcement.expired {
    opacity: 0.72;
    border-style: dashed;
}

.announcement-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 6px;
}

.announcement h3 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: -0.025em;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 6px;
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 900;
    background: #eef2ff;
    color: #076507;
}

.badge-pin { background: #dbeafe; color: #1d4ed8; }
.badge-expired { background: #ffedd5; color: #9a3412; }
.badge-expire { background: #f1f5f9; color: #475569; }

.timestamp {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 100;
    white-space: nowrap;
    text-align: right;
}

.body-text {
    color: #344054;
    line-height: 1.45;
    white-space: pre-wrap;
    margin: 6px 0 0;
    font-size: 0.74rem;
}

.attachments {
    margin-top: 10px;
    display: grid;
    gap: 6px;
}

.attachment-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px 12px;
    color: var(--primary);
    font-weight: 850;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--muted);
    background: white;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

.admin-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.small-text {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.login-page {
    max-width: 520px;
    margin: 46px auto 0;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    align-items: center;
    justify-content: center;
}

.pagination a,
.pagination span {
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 5px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    text-decoration: none;
}

.pagination a:hover,
.pagination .active-page {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.pagination .disabled-page {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 950px) {
    .hero,
    .admin-layout {
    display: grid;
    grid-template-columns: calc(40% + 100px) minmax(0, calc(60% - 100px));
    gap: 22px;
    align-items: start;
}

    .board-toolbar {
        grid-template-columns: 1fr;
    }

    .announcement-top {
        flex-direction: column;
        gap: 8px;
    }

    .timestamp {
        text-align: left;
        white-space: normal;
    }

    .nav-shell {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav-links {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .nav-link {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .page {
        width: min(100% - 18px, 1180px);
        padding-top: 18px;
    }

    .hero {
        border-radius: 15px;
        padding: 22px 18px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .board-shell {
        border-radius: 23px;
        padding: 14px;
    }

    .card {
        border-radius: var(--radius);
        padding: 16px;
    }

    .announcement {
        padding: 14px;
        border-radius: 9px;
    }

    input, textarea, select {
        font-size: 16px;
    }

    .brand-subtitle {
        display: none;
    }

    .pagination {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .pagination a,
    .pagination span {
        min-width: 40px;
        min-height: 40px;
    }
}


.admin-search-toolbar {
    display: grid;
    grid-template-columns: 1fr 170px auto auto;
    gap: 10px;
    margin-bottom: 16px;
    align-items: end;
}

@media (max-width: 950px) {
    .admin-search-toolbar {
        grid-template-columns: 1fr;
    }
}


.editor-wrap {
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #ffffff;
    overflow: hidden;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}

.editor-toolbar button,
.editor-toolbar select {
    width: auto;
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: 1px;
    background: #ffffff;
    color: var(--text);
    padding: 5px 7px;
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
}

.editor-toolbar button:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.color-tool {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 1px;
    background: #ffffff;
    padding: 4px 7px;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 750;
    text-transform: none;
    letter-spacing: 0;
}

.color-tool input {
    width: 24px;
    height: 22px;
    border: 0;
    padding: 0;
    background: transparent;
}

.rich-editor {
    min-height: 145px;
    max-height: 420px;
    overflow-y: auto;
    padding: 10px;
    outline: none;
    line-height: 1.45;
    font-size: 0.94rem;
    color: var(--text);
}

.rich-editor:focus {
    box-shadow: inset 0 0 0 2px rgba(29, 78, 216, 0.12);
}

.body-text ul,
.body-text ol {
    margin: 6px 0 6px 22px;
    padding: 0;
}

.body-text li {
    margin: 2px 0;
}

.body-text h2,
.body-text h3,
.body-text p {
    margin-top: 4px;
    margin-bottom: 6px;
}

.body-text font {
    line-height: inherit;
}

@media (max-width: 560px) {
    .editor-toolbar {
        gap: 4px;
        padding: 6px;
    }

    .editor-toolbar button,
    .editor-toolbar select {
        font-size: 0.75rem;
        min-height: 28px;
        padding: 4px 6px;
    }
}

@media (max-width: 950px) { .admin-layout {
    display: grid;
    grid-template-columns: calc(40% + 100px) minmax(0, calc(60% - 100px));
    gap: 22px;
    align-items: start;
} }








/* Summernote Lite editor integration - dropdown-safe */
.note-editor.note-frame {
    border-color: var(--line);
    border-radius: 5px;
    overflow: visible;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.note-editor .note-toolbar {
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    padding: 6px;
    position: relative;
    z-index: 10;
}

.note-editor .note-btn {
    border-radius: 1px;
    font-size: 0.78rem;
    color: var(--text);
}

.note-editor .note-btn:hover,
.note-editor .note-btn:focus {
    background: var(--primary-soft);
    color: var(--primary);
}

.note-editor .note-dropdown-menu,
.note-editor .note-popover,
.note-editor .note-color-palette,
.note-editor .note-modal {
    z-index: 99999 !important;
}

.note-editor .note-dropdown-menu {
    display: none;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--soft-shadow);
    padding: 6px;
}

.note-editor .note-btn-group.open .note-dropdown-menu,
.note-editor .note-dropdown-menu.show {
    display: block;
}

.note-editor .note-dropdown-item,
.note-editor .note-fontname,
.note-editor .note-color-btn {
    cursor: pointer;
}

.note-editor .note-editing-area {
    background: #ffffff;
}

.note-editor .note-editable {
    min-height: 420px;
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.45;
    background: #ffffff;
}

.note-editor .note-statusbar {
    background: #f8fafc;
}

.note-editor .note-resizebar {
    border-top-color: var(--line);
}

.note-modal .note-modal-content {
    border-radius: 5px;
}

.note-modal .note-modal-header,
.note-modal .note-modal-footer {
    background: #f8fafc;
}

.note-modal .note-btn-primary,
.note-editor .note-btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.note-modal .note-btn-primary:hover,
.note-editor .note-btn-primary:hover {
    background: #074707;
    border-color: #074707;
}

.body-text img,
.body-text iframe,
.body-text video {
    max-width: 100%;
}

.body-text table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
}

.body-text table td,
.body-text table th {
    border: 1px solid var(--line-strong);
    padding: 6px;
}


/* Public split pinned announcement layout */
.public-announcement-layout {
    display: grid;
    grid-template-columns: calc(40% + 100px) minmax(0, calc(60% - 100px));
    gap: 22px;
    align-items: start;
}

.pinned-column,
.regular-column {
    min-width: 0;
}

.column-header {
    margin: 0 0 10px;
    padding: 0 2px;
}

.column-header h2 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.pinned-column .announcement-list,
.regular-column .announcement-list {
    gap: 10px;
}

.compact-empty {
    padding: 24px 14px;
}

@media (max-width: 950px) {
    .public-announcement-layout {
        grid-template-columns: 1fr;
    }
}


/* Custom Summernote video embed fix */
.note-editor iframe,
.note-editor video,
.body-text iframe,
.body-text video {
    max-width: 100%;
    display: block;
    margin: 8px 0;
}

.note-editor .note-btn[title="Insert video"] {
    font-weight: 800;
}


/* Mobile compatibility update */
html {
    -webkit-text-size-adjust: 100%;
}

img,
video,
iframe,
table {
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

.site-header {
    width: 100%;
}

.nav-shell,
.page {
    width: min(1180px, calc(100% - 20px));
}

.brand {
    max-width: 100%;
}

.brand-text {
    min-width: 0;
}

.brand-title,
.brand-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-toolbar,
.admin-search-toolbar {
    min-width: 0;
}

input,
textarea,
select,
button {
    max-width: 100%;
}

.announcement,
.card,
.board-shell {
    min-width: 0;
}

.body-text {
    overflow-wrap: anywhere;
    word-break: normal;
}

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

.attachment-link {
    min-width: 0;
}

.attachment-link span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Tablet */
@media (max-width: 950px) {
    .nav-shell {
        min-height: auto;
        padding: 10px 0;
        align-items: flex-start;
    }

    .brand {
        width: 100%;
        justify-content: flex-start;
    }

    .logo-box {
        width: min(170px, 55vw);
        height: 52px;
    }

    .logo-box img {
        object-fit: contain;
    }

    .nav-links {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .nav-link {
        width: 100%;
        min-height: 38px;
        padding: 0 10px;
        font-size: 0.88rem;
    }

    .page {
        padding: 14px 0 42px;
    }

    .board-shell {
        margin-top: 12px;
        padding: 12px;
        border-radius: 15px;
    }

    .board-toolbar,
    .admin-search-toolbar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .public-announcement-layout,
    .admin-layout {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .pinned-column {
        order: 1;
    }

    .regular-column {
        order: 2;
    }

    .card {
        padding: 14px;
    }

    .announcement-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .timestamp {
        text-align: left;
        white-space: normal;
    }

    .admin-actions {
        justify-content: stretch;
    }

    .admin-actions .button,
    .admin-actions form,
    .admin-actions button {
        width: 100%;
    }

    .pagination {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .pagination a,
    .pagination span {
        flex: 0 0 auto;
    }
}

/* Phone */
@media (max-width: 560px) {
    .nav-shell,
    .page {
        width: min(100% - 14px, 1180px);
    }

    .site-header {
        position: sticky;
    }

    .nav-shell {
        gap: 8px;
    }

    .brand {
        gap: 8px;
    }

    .logo-box {
        width: min(150px, 50vw);
        height: 46px;
    }

    .brand-title {
        font-size: 0.9rem;
    }

    .brand-subtitle {
        display: none;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-link {
        min-height: 34px;
        font-size: 0.78rem;
        padding: 0 8px;
    }

    .board-shell {
        padding: 8px;
        border-radius: 12px;
    }

    .card {
        padding: 10px;
        border-radius: 10px;
    }

    label {
        font-size: 0.68rem;
        margin-bottom: 4px;
    }

    input,
    textarea,
    select {
        min-height: 36px;
        padding: 8px 9px;
        font-size: 16px;
        border-radius: 7px;
    }

    .button {
        min-height: 34px;
        padding: 7px 9px;
        font-size: 0.78rem;
        border-radius: 7px;
    }

    .public-expired-toggle,
    .admin-toggle,
    .checkbox-row {
        min-height: 34px;
        font-size: 0.78rem;
        align-items: center;
    }

    .public-expired-toggle {
        padding: 0 8px;
    }

    .announcement-list {
        gap: 8px;
    }

    .announcement {
        padding: 10px;
        border-radius: 8px;
    }

    .announcement h3 {
        font-size: 0.98rem;
        line-height: 1.2;
    }

    .meta-row {
        gap: 4px;
        margin: 5px 0;
    }

    .badge {
        font-size: 0.66rem;
        padding: 3px 7px;
    }

    .timestamp {
        font-size: 0.64rem;
    }

    .body-text {
        font-size: 0.76rem;
        line-height: 1.4;
    }

    .attachment-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 7px 8px;
        font-size: 0.78rem;
    }

    .empty {
        padding: 22px 12px;
    }

    .column-header h2,
    .card h2 {
        font-size: 0.96rem;
    }

    .pagination {
        gap: 5px;
        margin-top: 12px;
    }

    .pagination a,
    .pagination span {
        min-width: 32px;
        min-height: 32px;
        padding: 0 8px;
        font-size: 0.75rem;
    }

    /* Summernote mobile */
    .note-editor.note-frame {
        max-width: 100%;
    }

    .note-editor .note-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
        padding: 5px;
        overflow-x: visible;
    }

    .note-editor .note-btn {
        padding: 4px 6px;
        font-size: 0.72rem;
    }

    .note-editor .note-dropdown-menu {
        max-width: calc(100vw - 24px);
        overflow-x: auto;
    }

    .note-editor .note-editable {
        min-height: 300px;
        font-size: 0.86rem;
    }

    .note-modal .note-modal-content {
        width: calc(100vw - 24px);
        margin: 10px auto;
    }

    .note-modal .note-form-group input {
        font-size: 16px;
    }
}

/* Extra small phones */
@media (max-width: 380px) {
    .logo-box {
        width: 120px;
        height: 40px;
    }

    .nav-link {
        font-size: 0.72rem;
    }

    .announcement h3 {
        font-size: 0.92rem;
    }

    .body-text {
        font-size: 0.72rem;
    }

    .note-editor .note-btn {
        padding: 3px 5px;
    }
}


/* Multi-admin profile and permission UI */
.current-admin-card,
.admin-user-row,
.profile-preview {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 8px;
    margin-top: 10px;
}

.current-admin-card img,
.admin-user-row img,
.profile-preview img,
.author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    flex: 0 0 auto;
}

.admin-avatar-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff;
    font-weight: 900;
    flex: 0 0 auto;
}

.current-admin-card strong,
.admin-user-row strong {
    display: block;
    font-size: 0.82rem;
    line-height: 1.15;
}

.current-admin-card small,
.admin-user-row small {
    display: block;
    font-size: 0.68rem;
    color: var(--muted);
}

.admin-user-panel {
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.admin-user-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.admin-user-row {
    justify-content: space-between;
}

.admin-user-row > div {
    min-width: 0;
    flex: 1;
}

.profile-preview span {
    font-size: 0.78rem;
    color: var(--muted);
}

@media (max-width: 560px) {
    .current-admin-card,
    .admin-user-row,
    .profile-preview {
        padding: 7px;
    }

    .admin-user-row {
        flex-wrap: wrap;
    }

    .admin-user-row .button {
        width: 100%;
    }
}





/* Admin users separate page */
.admin-users-page-layout {
    display: grid;
    grid-template-columns: calc(40% + 100px) minmax(0, calc(60% - 100px));
    gap: 22px;
    align-items: start;
}

@media (max-width: 950px) {
    .admin-users-page-layout {
        grid-template-columns: 1fr;
    }
}


/* Admin search toolbar layout update */
.admin-search-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.admin-search-full {
    width: 100%;
}

.admin-search-full input {
    width: 100%;
}

.admin-search-bottom-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-search-bottom-row > div {
    min-width: 220px;
}

.admin-search-bottom-row select {
    min-width: 220px;
}

@media (max-width: 768px) {
    .admin-search-bottom-row {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-search-bottom-row > div,
    .admin-search-bottom-row select,
    .admin-search-bottom-row .button,
    .admin-search-bottom-row .public-expired-toggle {
        width: 100%;
    }
}
