/* Admin area (Officer+) and shared rank badges. */

.admin-panel {
    margin-top: 36px;
}
.admin-panel .panel-heading h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.admin-panel .panel-heading h1 .icon {
    color: #d8763f;
}
.admin-filter {
    display: flex;
    gap: 6px;
}
.admin-filter a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 6px 14px;
    border: 1px solid #6b4b3155;
    border-radius: 2px;
    font: 500 .74rem/1.2 var(--heading-font);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.admin-filter a:hover {
    text-decoration: none;
    background: #3a1a1255;
}
.admin-filter a[aria-current='page'] {
    color: #ffe3b0;
    background: linear-gradient(#8a1a12, #4a0a07);
    border-color: #b2583c;
}
.count-badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: 10px;
    background: #c2331f;
    color: #fff;
    font: 700 .7rem/1 var(--body-font);
    box-shadow: 0 0 8px #e0401f88;
}

/* ---------- table ---------- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
    font-size: 1rem;
}
.admin-table th {
    padding: 12px 14px;
    text-align: left;
    color: var(--gold);
    font: 600 .7rem/1.2 var(--heading-font);
    text-transform: uppercase;
    letter-spacing: .08em;
    border-bottom: 1px solid #6b4b3188;
}
.admin-table td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #5a473233;
}
.admin-table tbody tr:hover {
    background: #7a24140f;
}
.admin-table tr.is-pending {
    background: linear-gradient(90deg, #8a3a1422, transparent 60%);
}
.admin-table tr.is-pending td:first-child {
    box-shadow: inset 3px 0 0 #d8763f;
}
.admin-table tr.is-inactive {
    opacity: .55;
}
.member-name {
    display: block;
    color: #f3e6cf;
    font-size: 1.08rem;
}
.member-email {
    display: block;
    color: var(--muted);
    font-size: .9rem;
}
.muted {
    color: var(--muted);
}
/* Actions are separate cells (rank, rename, reset, (de)activate, delete) so they line up across rows. */
.admin-table td.admin-actions {
    padding-left: 6px;
    padding-right: 6px;
    text-align: left;
    white-space: nowrap;
}
.admin-table td.admin-actions--rank {
    padding-left: 14px;
}
.admin-table td.admin-actions--delete,
.admin-table td.admin-actions--end {
    padding-right: 14px;
    text-align: right;
}
.admin-actions form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}
.admin-actions--rank form {
    display: flex;
}
.admin-actions--rank form + form {
    margin-top: 6px;
}
.admin-actions select {
    min-height: 34px;
    padding: 4px 8px;
    background: linear-gradient(125deg, #151817, #080a0a);
    color: var(--text);
    border: 1px solid #625b4e;
    border-radius: 3px;
    font: inherit;
    font-size: .95rem;
}
.admin-actions .button--small {
    min-height: 34px;
}
.link-button--danger {
    min-height: 34px;
    padding: 4px 6px;
    color: #f08a74;
    font: 500 .72rem/1.2 var(--heading-font);
    text-transform: uppercase;
    letter-spacing: .05em;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.link-button--danger:hover {
    color: #ffb4a2;
    text-decoration: underline;
}

/* ---------- rank badges (placeholder styling until Codex delivers badge art) ---------- */
.rank {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #6b5a45;
    border-radius: 2px;
    background: linear-gradient(#2a241e, #15120f);
    color: #e3d3b8;
    font: 600 .66rem/1.3 var(--heading-font);
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 #ffffff14, 0 1px 2px #000;
}
.rank--guild-master {
    border-color: #e0b35c;
    background: linear-gradient(#7a5418, #3d2808);
    color: #ffe7b0;
    box-shadow: inset 0 1px 0 #ffffff33, 0 0 10px #e0b35c55;
}
.rank--officer {
    border-color: #c0573f;
    background: linear-gradient(#8e1d14, #4a0906);
    color: #ffe2cc;
}
.rank--raid-leader {
    border-color: #c8763c;
    background: linear-gradient(#7a3a12, #3b1a07);
    color: #ffdcbc;
}
.rank--raider {
    border-color: #a0603c;
    background: linear-gradient(#55251a, #2a110b);
}
.rank--member, .rank--alt {
    border-color: #7d6a52;
}
.rank--initiate {
    border-color: #5f7d62;
    background: linear-gradient(#233323, #111a11);
    color: #d6ead3;
}
.rank--guest {
    border-color: #d8763f;
    background: linear-gradient(#4a2410, #241006);
    color: #ffd2b0;
}
.rank--inactive {
    margin-left: 6px;
    border-color: #555;
    color: #aaa;
}

/* ---------- rename ---------- */
.member-previous {
    display: block;
    color: #c99b62;
    font-size: .88rem;
    font-style: italic;
}
.rename {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.rename summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 4px 6px;
    color: var(--gold);
    font: 500 .72rem/1.2 var(--heading-font);
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
}
.rename summary::-webkit-details-marker {
    display: none;
}
.rename[open] summary {
    color: #ffe3b0;
}
.rename-form {
    position: absolute;
    z-index: 5;
    right: 0;
    top: calc(100% + 6px);
    display: flex !important;
    gap: 6px;
    margin: 0 !important;
    padding: 12px;
    background: #121110;
    border: 1px solid #7d5c3d;
    box-shadow: 0 10px 24px #000c;
}
.rename-form input {
    width: 130px;
    min-height: 34px;
}

.member-discord {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #a3adff;
    font-size: .9rem;
}
.member-discord .discord-warning {
    color: #e8c070;
}

.admin-filter form {
    margin: 0 0 0 10px;
}
.member-sync-error {
    display: block;
    font-size: .85rem;
}

.member-delete {
    border: 1px solid #7a2a1e;
    border-radius: 2px;
    padding-inline: 10px;
    color: #ff6b57;
}
.member-delete:hover {
    background: #5a1510;
    color: #ffd6cc;
    text-decoration: none;
}

/* ---------- audit log ---------- */
.log-total {
    font-size: .85rem;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 6px;
}
.log-table {
    table-layout: fixed;
}
.log-table .col-when { width: 16%; }
.log-table .col-who { width: 18%; }
.log-table .col-what { width: 30%; }
.log-table .col-details { width: 36%; }
.log-details {
    color: var(--muted);
    overflow-wrap: anywhere;
}
.log-action {
    display: inline-block;
    padding: 1px 8px;
    border-left: 3px solid #8a7a66;
    background: #1a1714;
    font-size: .92rem;
}
.log-action--members { border-left-color: #6fa05f; }
.log-action--calendar { border-left-color: #d9722e; }
.log-action--content { border-left-color: #c9a45c; }
.log-action--forum { border-left-color: #5f9095; }
.log-action--discord { border-left-color: #5865f2; }
.admin-filter {
    flex-wrap: wrap;
}

/* ---------- guild progress admin ---------- */
.progress-hint {
    padding: 8px 20px 0;
}
#raid-new {
    margin: 12px 20px 0;
}
.progress-admin {
    padding: 8px 20px 12px;
}
.progress-admin__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 12px 0;
    border-bottom: 1px solid #5a473233;
}
.progress-admin__row.is-hidden-raid {
    opacity: .6;
}
.progress-admin__icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid #94603d;
    border-radius: 3px;
    box-shadow: inset 0 0 0 3px #0c0805, 0 2px 6px #000;
}
.progress-admin__name {
    flex: 1;
    min-width: 200px;
}
.progress-admin__name strong {
    display: block;
    color: #f3e6cf;
    font-size: 1.1rem;
}
.progress-admin__kills {
    display: flex;
    align-items: center;
    gap: 8px;
}
.progress-admin__kills form, .progress-admin__actions form {
    margin: 0;
}
.progress-admin__kills .button--small {
    min-width: 38px;
    font-size: 1.1rem;
}
.progress-admin__kills button[disabled] {
    opacity: .35;
    cursor: not-allowed;
}
.progress-admin__count {
    min-width: 64px;
    text-align: center;
    color: #ffd08e;
    font: 600 1.25rem var(--heading-font);
}
.progress-admin__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.progress-form {
    flex-basis: 100%;
}
.visibility-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 4px 12px 4px 6px;
    border: 1px solid #6b5a45;
    border-radius: 2px;
    background: #15120f;
    color: #b8b0a3;
    font: 600 .7rem var(--heading-font);
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
}
.visibility-toggle__box {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid #8a7a66;
    border-radius: 2px;
    background: #0b0a09;
    color: #0b0a09;
    font-size: .8rem;
}
.visibility-toggle.is-on {
    border-color: #6fa05f;
    color: #cfe8c6;
}
.visibility-toggle.is-on .visibility-toggle__box {
    border-color: #7fbf5f;
    background: linear-gradient(#3f7a30, #1f4a18);
    color: #fff;
}
.visibility-toggle:hover {
    border-color: #a4825c;
}

.log-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 20px 0;
}
.log-bar form {
    margin: 0;
}
.log-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.log-hint {
    margin: 0;
}
.admin-panel .panel-heading form {
    margin: 0;
}

/* ---------- applications ---------- */
.member-application {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #e8b070;
    font-size: .9rem;
}
.application-list {
    display: grid;
    gap: 18px;
    margin-top: 10px;
}
.application {
    padding: 18px 22px;
    border: 1px solid #5a473266;
    background: linear-gradient(180deg, #16131099, #0c0b0acc);
}
.application--pending {
    box-shadow: inset 3px 0 0 #d8763f;
}
.application--declined {
    opacity: .7;
}
.application__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #5a473244;
}
.application__head h2 {
    margin: 0 0 4px;
    color: #f3e6cf;
    font: 600 1.2rem/1.3 var(--heading-font);
}
.application__head p {
    margin: 0;
}
.application__status {
    flex-shrink: 0;
    padding: 4px 10px;
    border: 1px solid #6b4b31;
    color: var(--gold);
    font: 600 .72rem/1.3 var(--heading-font);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.application--accepted .application__status {
    border-color: #6f8f5c;
    color: #b5d99f;
}
.application__answers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 24px;
    margin: 14px 0 0;
}
.application__answers dt {
    color: var(--gold);
    font: 600 .72rem/1.3 var(--heading-font);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.application__answers dd {
    margin: 4px 0 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.application__long {
    grid-column: 1 / -1;
}
.application__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}
.application__decline {
    display: grid;
    gap: 8px;
    max-width: 640px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #7a2a1c66;
    background: #1a0e0b88;
}
.application__decline[hidden] {
    display: none;
}
.application__decline .button {
    justify-self: start;
}

/* ---------- webhooks ---------- */
.webhook-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}
.webhook {
    padding: 18px 22px;
    border: 1px solid #5a473266;
    background: linear-gradient(180deg, #16131099, #0c0b0acc);
}
.webhook__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}
.webhook__head h2 {
    margin: 0;
    color: #f3e6cf;
    font: 600 1.15rem/1.3 var(--heading-font);
}
.webhook > p {
    margin: 6px 0 12px;
}
.webhook__form {
    display: flex;
    gap: 8px;
    max-width: 820px;
}
.webhook__form input {
    flex: 1;
    min-height: 38px;
    padding: 6px 10px;
    background: linear-gradient(125deg, #151817, #080a0a);
    color: var(--text);
    border: 1px solid #625b4e;
    border-radius: 3px;
    font: inherit;
}
.webhook__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}
.application__tag {
    margin-left: 8px;
    padding: 2px 8px;
    border: 1px solid #8a6a3a;
    color: #e8c070;
    font: 600 .62rem/1.4 var(--heading-font);
    letter-spacing: .06em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* ---------- Statistics ---------- */
.stats-totals {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin: 0 20px 18px;
}
.stats-totals div {
    padding: 12px 14px;
    border: 1px solid #5a473255;
    background: linear-gradient(#1a1412aa, #0d0c0b66);
    text-align: center;
}
.stats-totals dt {
    color: var(--muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.stats-totals dd {
    margin: 4px 0 0;
    color: var(--gold);
    font: 500 1.6rem/1.1 var(--heading-font);
}
.stats-table th[data-sort] {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.stats-table th[data-sort]:hover {
    color: #ffe6b8;
}
.stats-table th[aria-sort='descending']::after { content: ' ▼'; font-size: .7em; }
.stats-table th[aria-sort='ascending']::after { content: ' ▲'; font-size: .7em; }
.stats-table td .forum-meta {
    display: block;
}
.stats-table tr.is-inactive td {
    opacity: .6;
}
.stats-heading {
    margin: 22px 20px 6px;
    color: var(--gold);
    font: 600 1.15rem/1.3 var(--heading-font);
    letter-spacing: .04em;
}

/* Website visitors: one series, bars per day (gold #b8873a, validated against the panel surface) */
.visit-chart {
    margin: 0 20px 18px;
    padding: 12px 14px 8px;
    border: 1px solid #5a473255;
    background: linear-gradient(#1a1412aa, #0d0c0b66);
}
.visit-chart figcaption {
    margin-bottom: 8px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.visit-chart__plot {
    position: relative;
    height: 180px;
    border-top: 1px dashed #59473640;   /* recessive max gridline */
    border-bottom: 1px solid #594736;
}
.visit-chart__max {
    position: absolute;
    top: -9px;
    left: 0;
    padding-right: 6px;
    background: #141210;
    font-size: .75rem;
    line-height: 1;
}
.visit-chart__bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 100%;
    padding-left: 30px;
}
.visit-chart__col {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: flex-end;
    min-width: 0;
    height: 100%;      /* whole column is the hover target */
    outline: none;
}
.visit-chart__bar {
    width: 100%;
    max-width: 28px;
    margin: 0 auto;
    min-height: 1px;
    border-radius: 4px 4px 0 0;
    background: #b8873a;
}
.visit-chart__col:hover .visit-chart__bar,
.visit-chart__col:focus-visible .visit-chart__bar {
    background: var(--gold);
}
.visit-chart__col:hover::after,
.visit-chart__col:focus-visible::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    z-index: 5;
    transform: translateX(-50%);
    padding: 5px 9px;
    border: 1px solid var(--border);
    background: #0d0c0bf2;
    color: var(--text);
    font-size: .8rem;
    white-space: nowrap;
    pointer-events: none;
}
.visit-chart__col:first-child:hover::after,
.visit-chart__col:first-child:focus-visible::after { left: 0; transform: none; }
.visit-chart__col:last-child:hover::after,
.visit-chart__col:last-child:focus-visible::after { left: auto; right: 0; transform: none; }
.visit-chart__axis {
    display: flex;
    justify-content: space-between;
    padding: 4px 0 0 30px;
    font-size: .75rem;
}
.visit-lists {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: start;
    gap: 18px;
    margin: 0 20px 12px;
}
.visit-lists .admin-table {
    margin: 0;
}
.visit-lists td a {
    word-break: break-all;
}
.visit-table {
    margin: 0 20px 8px;
}
.visit-table summary {
    cursor: pointer;
    color: var(--muted);
}
.visit-table .admin-table {
    margin: 8px 0 0;
}

/* ---------- Admin → Discord Bot ---------- */
.admin-panel:has(> .bot-head) { margin-top: 0; }
.bot-head + .admin-panel { margin-top: 0; }
.bot-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 32px 0 14px;
}
.bot-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.bot-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid #5a473266;
    border-radius: 999px;
    background: #0e0d0ccc;
    color: #e9d3ae;
    font: 500 .72rem var(--heading-font);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.bot-nav a:hover { color: #fff0cf; text-decoration: none; }
.bot-nav a[aria-current='page'] {
    border-color: #8f4630;
    background: linear-gradient(#3a120c, #1a0a07);
    color: #ffe6b8;
}
.bot-nav .icon { color: #c99b62; }
.bot-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid #5a473266;
    border-radius: 999px;
    background: #0e0d0ccc;
    font-size: .9rem;
}
.bot-pill__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7d7469;
}
.bot-pill--online .bot-pill__dot { background: #3ba55d; box-shadow: 0 0 8px #3ba55daa; }
.bot-pill--offline .bot-pill__dot { background: #c0392b; }
.bot-error { color: var(--red-bright); }
.bot-callout {
    margin: 16px 0;
    padding: 12px 16px;
    border: 1px solid #5a473266;
    border-left: 3px solid #c99b62;
    background: #16131099;
}
.bot-callout--warning { border-left-color: var(--red-bright); }
.bot-modules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    padding: 14px 20px 22px;
}
.bot-module .reminder-toggle {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}
.bot-module {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid #5a473266;
    background: linear-gradient(180deg, #16131099, #0c0b0acc);
}
.bot-module--on { border-color: #3ba55d66; }
.bot-module .button { align-self: flex-start; }
.bot-form h2,
.bot-subheading {
    margin: 22px 0 8px;
    color: var(--gold);
    font: 500 1.05rem var(--heading-font);
    letter-spacing: .05em;
    text-transform: uppercase;
}
.bot-form h2:first-of-type { margin-top: 6px; }
.bot-form textarea { width: 100%; }
.bot-form .switch { margin: 6px 0; }
.bot-switches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 10px 0 14px;
}
.bot-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 14px;
}
.bot-role {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #5a473266;
    border-radius: 4px;
    background: #0e0d0ccc;
    cursor: pointer;
}
.bot-role:has(input:checked) { border-color: #c99b62; background: #2a1a10cc; }
.bot-role__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.bot-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin: 14px 0;
}
.bot-inline-form .form-field { margin: 0; }
.bot-prefix-input {
    display: flex;
    align-items: stretch;
}
.bot-prefix-input span {
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #5a4736;
    border-right: 0;
    background: #1a1412;
    color: var(--gold);
}
.bot-prefix-input input { flex: 1; min-width: 0; }
.bot-commands {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}
.bot-command {
    border: 1px solid #5a473266;
    background: #0e0d0caa;
}
.bot-command > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
}
.bot-command[open] > summary { border-bottom: 1px solid #5a473244; }
.bot-command > form { padding: 0 14px; }
.bot-command > form:last-child { padding-bottom: 12px; }
.bot-command--off { opacity: .6; }
.bot-command__preview {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bot-ach__emoji { font-size: 1.3rem; }
.bot-ach__icon { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.bot-ach__count {
    min-width: 3em;
    padding: 1px 8px;
    border-radius: 9px;
    background: #2a1a10;
    color: var(--gold);
    text-align: center;
}
.bot-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.bot-leaderboard,
.bot-recent {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}
.bot-leaderboard li {
    display: grid;
    grid-template-columns: 40px 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #5a473233;
}
.bot-leaderboard__rank { color: var(--gold); font-family: var(--heading-font); }
.bot-leaderboard__avatar {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2a221c;
}
.bot-leaderboard__name { display: flex; flex-direction: column; min-width: 0; }
.bot-leaderboard__level { color: var(--gold); white-space: nowrap; }
.bot-recent li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #5a473233;
}
.bot-log-details pre {
    max-width: 640px;
    margin: 6px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: .85rem;
}
@media (max-width: 900px) {
    .bot-columns { grid-template-columns: 1fr; }
}
