        body {
            margin: 0;
            background: #d7d7d7;
            color: #222;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 13px;
        }

        a {
            color: #0000cc;
        }

        .page {
            width: 900px;
            margin: 12px auto;
            background: white;
            border: 3px ridge #999;
        }

        .topbar {
            background: linear-gradient(#4c6fae, #1d396c);
            color: white;
            padding: 8px 12px;
            border-bottom: 3px ridge #aaa;
        }

        .topbar h1 {
            margin: 0;
            font-family: Georgia, "Times New Roman", serif;
            font-size: 30px;
            text-shadow: 2px 2px #111;
        }

        .tagline {
            font-size: 12px;
            margin-top: 2px;
        }

        .nav {
            background: #eeeeee;
            border-bottom: 2px solid #888;
            padding: 5px;
            text-align: center;
        }

        .nav a {
            display: inline-block;
            padding: 4px 13px;
            margin: 0 2px;
            background: #d4d0c8;
            border: 2px outset #fff;
            color: #000;
            text-decoration: none;
            font-weight: bold;
        }

        .nav a:active {
            border-style: inset;
        }

        .marquee {
            background: #000;
            color: #00ff00;
            padding: 4px;
            font-family: "Courier New", monospace;
            overflow: hidden;
            white-space: nowrap;
        }

        .content {
            display: grid;
            grid-template-columns: 650px 230px;
            gap: 10px;
            padding: 10px;
        }

        .box {
            border: 2px solid #777;
            margin-bottom: 10px;
            background: #fafafa;
        }

        .box-title {
            background: #c5d5ef;
            border-bottom: 2px solid #777;
            padding: 5px 7px;
            font-weight: bold;
            color: #10264d;
        }

        .box-body {
            padding: 8px;
        }

        .welcome {
            background: #ffffcc;
            border-color: #999900;
        }

        .forum-row {
            display: grid;
            grid-template-columns: 70px 1fr 90px;
            border-bottom: 1px solid #aaa;
            padding: 8px 4px;
            align-items: center;
        }

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

        .forum-icon {
            font-size: 27px;
            text-align: center;
        }

        .forum-title a {
            font-size: 15px;
            font-weight: bold;
        }

        .forum-description {
            color: #555;
            margin-top: 3px;
        }

        .stats {
            text-align: center;
            color: #555;
            font-size: 11px;
        }

        .user-card {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
            padding: 5px;
            background: white;
            border: 1px solid #aaa;
        }

        .user-card img {
            width: 42px;
            height: 42px;
            object-fit: cover;
            border: 1px solid #333;
            background: #ddd;
        }

        .user-card a {
            font-weight: bold;
        }

        input,
        textarea,
        select {
            box-sizing: border-box;
            width: 100%;
            padding: 5px;
            border: 2px inset #ddd;
            background: white;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 13px;
            margin-bottom: 7px;
        }

        textarea {
            min-height: 100px;
            resize: vertical;
        }
        
        .status {
            padding: 6px;
            background: #e5ffe5;
            border: 1px solid #589958;
            display: none;
            margin-bottom: 8px;
        }

        .error {
            background: #ffe5e5;
            border-color: #aa5555;
        }

        .post {
            border: 1px solid #888;
            margin-bottom: 8px;
            background: white;
        }

        .post-header {
            background: #dedede;
            padding: 5px;
            border-bottom: 1px solid #888;
            font-weight: bold;
        }

        .post-content {
    display: grid;
    grid-template-columns: 100px 1fr;
    min-height: 100px;
}

.post-user {
    grid-column: 1;
    grid-row: 1 / -1;

    background: #eeeeee;
    border-right: 1px solid #aaa;
    padding: 7px;
    text-align: center;
    box-sizing: border-box;
}
        .post-user img {
            width: 70px;
            height: 70px;
            object-fit: cover;
            border: 1px solid #555;
        }

        .post-user a {
            text-decoration: none;
            color: #000;
        }

        .post-user a:hover strong {
            text-decoration: underline;
        }

       .post-body {
    padding: 0;
    margin: 0;
    white-space: pre-wrap;
    text-align: left;
}

.post-actions {
    grid-column: 2;
    grid-row: 2;

    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 4px;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.post-actions .post-action-button {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 2px 6px !important;
    margin: 0 !important;
    font-size: 11px;
}

        .post-action-button:active {
            border-style: inset;
        }

        .post-list-wrap {
            position: relative;
        }

        .post-list-collapsed {
            max-height: 650px;
            overflow: hidden;
        }

        .post-list-controls {
            margin-top: 8px;
            text-align: center;
        }

        .post-list-controls button {
            margin: 2px;
        }

        .admin-panel {
            display: none;
        }

        .admin-user {
            display: grid;
            grid-template-columns: 50px 1fr auto;
            gap: 8px;
            align-items: center;
            padding: 8px 6px;
            border-bottom: 1px solid #aaa;
            background: white;
        }

        .admin-user img {
            width: 45px;
            height: 45px;
            object-fit: cover;
            border: 1px solid #555;
            background: #ddd;
        }

        .admin-actions {
            text-align: right;
        }

        .admin-actions button {
            margin: 2px;
            font-size: 11px;
        }

        .moderation-row {
            margin-top: 6px;
            padding: 5px;
            border-top: 1px dotted #aaa;
        }

        .moderation-row select {
            width: auto;
            margin: 0 3px 0 0;
            padding: 3px;
        }

        .role-badge {
            display: inline-block;
            padding: 2px 5px;
            margin-top: 2px;
            border: 1px solid #888;
            background: #eeeeee;
            font-size: 10px;
            font-weight: bold;
        }

        .role-owner {
            background: #444444;
            border-color: #000000;
        }

        .role-coowner {
            background: #e4d5ff;
            border-color: #7650a8;
        }

        .role-admin {
            background: #d5e7ff;
            border-color: #5479a8;
        }

        .role-member {
            background: #eeeeee;
            border-color: #999;
        }

        .moderation-badge {
            display: inline-block;
            margin-top: 3px;
            padding: 2px 5px;
            background: #ffdddd;
            border: 1px solid #aa5555;
            color: #880000;
            font-size: 10px;
            font-weight: bold;
        }

        .small {
            font-size: 11px;
            color: #666;
        }

        .profile-preview {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px;
            background: white;
            border: 1px solid #aaa;
            margin-bottom: 10px;
        }

        .profile-preview img {
            width: 70px;
            height: 70px;
            object-fit: cover;
            border: 2px solid #555;
            background: #ddd;
        }

        .profile-preview a {
            font-size: 16px;
            font-weight: bold;
        }

        .footer {
            border-top: 3px ridge #999;
            background: #eeeeee;
            padding: 12px;
            text-align: center;
            font-size: 11px;
            color: #444;
        }

        .footer strong {
            color: #222;
        }

        hr {
            border: 0;
            border-top: 1px solid #aaa;
            margin: 12px 0;
        }

           button {
            padding: 5px 12px;
            background: #d4d0c8;
            border: 2px outset #fff;
            font-weight: bold;
            cursor: pointer;
        }

        button:active {
            border-style: inset;
        }

        button.danger {
            background: #f0caca;
        }

        button.warning {
            background: #fff0b0;
        }

        button.success {
            background: #cceacc;
        }


        @media (max-width: 940px) {

            .page {
                width: 96%;
            }

            .content {
                grid-template-columns: 1fr;
            }

        }

        @media (max-width: 600px) {

            .admin-user {
                grid-template-columns: 50px 1fr;
            }

            .admin-actions {
                grid-column: 1 / -1;
                text-align: left;
            }

            .post-content {
                grid-template-columns: 85px 1fr;
            }

        }

        #updateBanner {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 99999;
            background: #ffffcc;
            color: #000;
            border-bottom: 3px ridge #999;
            padding: 8px 10px;
            text-align: center;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 13px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
        }

        #updateBanner strong {
            color: #000080;
        }

        #updateBanner button {
            margin-left: 8px;
            padding: 2px 8px;
            border: 2px outset #ccc;
            background: #ddd;
            color: #000;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 12px;
            cursor: pointer;
        }

        #updateBanner button:active {
            border-style: inset;
        }

        #updateBanner .update-close {
            margin-left: 4px;
        }

