/* Terminal console overrides. Public and account layouts retain their own styles. */
.adm {
    --mud-palette-primary: #9cffaa;
    --mud-palette-primary-text: #030503;
    font-size: 16px;
}
.adm a, .adm .mud-link, .picker-card a { text-decoration: none; }
.adm .mud-paper { background: #080c09; border-radius: 8px; box-shadow: none; }
.adm .mud-button, .picker-card .mud-button {
    font: inherit;
    font-size: 15px;
    letter-spacing: .02em;
    border-radius: 8px;
    min-height: 36px;
    padding: 5px 10px;
    text-decoration: none;
}
.adm .mud-button-filled-primary {
    background: #9cffaa;
    color: #030503;
    border: 1px solid #9cffaa;
}
.adm .mud-button-outlined-primary, .picker-card .mud-button-outlined-primary {
    color: #9cffaa;
    border-color: #405447;
    background: #080c09;
}
.adm .mud-button-text-primary, .adm .mud-link { color: #9cffaa; }
.adm .mud-button-outlined-error { color: #ff9e9e; border-color: #734646; }
.adm .mud-input-control { margin-top: 5px; min-width: 0; }
.adm .mud-input, .adm .mud-input-label, .adm .mud-input input, .adm .mud-input textarea,
.admin-select-menu, .picker-card .mud-input { font-family: "Courier New", Consolas, monospace; font-size: 16px; }
/* Undo legacy .field input padding/borders on the actual Mud input. */
.adm .field .mud-input-slot {
    background: transparent;
    color: #e3eae5;
    border: 0;
    border-radius: 0;
    padding: 10px 12px;
    min-height: 0;
}
.adm .field textarea.mud-input-slot { resize: vertical; }
.adm .mud-input-outlined { background: #070a08; border-radius: 8px; }
.adm .mud-input-outlined-border { border-color: #405447; border-radius: 8px; }
.adm .mud-input-label { color: #bac6be; }
.adm .field-hint, .adm .muted { color: #a4afa7; font-size: 15px; }
.adm .metabox-head { color: #9cffaa; font-size: 15px; padding: 9px 12px; }
.adm .metabox-body { gap: 12px; }
.adm .mud-checkbox, .adm .mud-radio { margin: 0; }
.adm .mud-checkbox .mud-icon-button, .adm .mud-radio .mud-icon-button { padding: 5px; }
.adm .mud-checkbox .mud-typography, .adm .mud-radio .mud-typography { font-size: 15px; }
.adm .bulkbar > .mud-select { width: 180px; flex: 0 1 180px; }
.adm .bulkbar .live-search { flex: 1 1 200px; max-width: 300px; }
.adm .tabs { border-bottom: 1px solid #273128; margin-bottom: 14px; }
.adm .tabs .mud-tabs-toolbar { background: transparent; }
.adm .tabs .mud-tab { min-height: 40px; padding: 6px 12px; font-size: 15px; text-transform: none; }
.adm .tabs .mud-tab-active { color: #9cffaa; }
.adm .tabs .mud-tabs-panels { display: none; }
.adm .posts-table { border-radius: 8px; overflow-x: auto; }
.adm .posts-table table { width: 100%; border-collapse: collapse; }
.adm .posts-table table th, .adm .posts-table table td {
    padding: 9px 10px;
    border-bottom: 1px solid #273128;
    font-size: 15px;
    color: #e3eae5;
    vertical-align: top;
}
.adm .posts-table table th { background: #0a110c; color: #b8c6bc; letter-spacing: .06em; }
.adm .posts-table table tr:hover td { background: #0d1710; }
.adm .row-links { align-items: center; gap: 10px; }
.adm .posts-table .row-links .mud-button { min-width: 0; min-height: 28px; padding: 2px 0; font-size: 15px; }
.adm .row-links .mud-button-label { padding: 0; }
.adm .mud-pagination { flex-wrap: wrap; }
.adm .mud-nav-link { border-radius: 8px; font-size: 15px; min-height: 36px; padding: 7px 10px; }
.adm .mud-nav-link-text { margin-left: 0; display: flex; align-items: center; gap: 10px; }
.adm .mud-nav-link.active { background: #0b1a0f; color: #9cffaa; }
.adm .mud-nav-link.sub { padding-left: 22px; }
.adm .console-badge .mud-badge { position: static; transform: none; background: #9cffaa; color: #030503; }
.adm .console-badge, .adm .console-badge .mud-badge-wrapper { position: static; display: inline-flex; align-items: center; }
.adm .adm-side .group { color: #a4afa7; font-size: 14px; }
.adm .ed-title .mud-input-slot { font-size: 24px; font-weight: bold; padding: 12px; }
.adm .ed-title { padding: 0; border: 0; background: transparent; }
.adm .ed-bar { height: auto; min-height: 44px; padding: 6px; flex-wrap: wrap; }
.adm .ed-bar .mud-icon-button { width: 36px; height: 36px; border: 1px solid #405447; border-radius: 8px; }
.adm .ed-bar .mud-button { width: auto; height: 36px; border-radius: 8px; }
.adm .ed-panes #body-editor { font: 16px/1.65 "Courier New", Consolas, monospace; }
.adm .ed-foot, .adm .savestate { font-size: 15px; color: #a4afa7; }
.adm .tag-box { align-items: center; }
.adm .tag-box > .mud-input-control { flex: 1 1 160px; }
.adm .mud-chip { border-radius: 8px; color: #9cffaa; font-size: 15px; margin: 3px; }
.adm .cat-tree .mud-radio-content { display: grid; }
.adm .media-grid2 .tile .mud-button-label, .picker-grid .mud-button-label { display: flex; flex-direction: column; width: 100%; }
.adm .media-grid2 .tile { height: auto; padding: 0; text-transform: none; }
.adm .media-grid2 .tile.sel { border-color: #9cffaa; }
.adm .media-grid2 .tile .mud-button-label > span { width: 100%; overflow: hidden; text-overflow: ellipsis; }
.adm .media-grid2 .tile span.mud-button-label { padding: 0; white-space: normal; }
.adm .avatar-img { width: 80px; height: 80px; border-radius: 8px; }
.admin-select-menu { background: #0a0e0b; color: #e3eae5; border: 1px solid #405447; border-radius: 8px; }
.admin-select-menu .mud-list-item { font-size: 16px; }
.picker-card.mud-dialog { padding: 0; width: min(900px, 100%); max-height: 86vh; border-radius: 8px; }
.picker-card .mud-dialog-content { overflow: auto; }
.picker-grid .mud-button { padding: 0; text-transform: none; }
.picker-grid .mud-button-label { padding: 0; white-space: normal; }
.picker-grid .mud-button-label > span { width: 100%; overflow: hidden; text-overflow: ellipsis; }
.picker-card .dropzone { color: #b8c6bc; font-size: 16px; }
@media (hover: none) { .adm .posts-table .row-links { opacity: 1; } }
@media (max-width: 900px) {
    .adm .adm-side .mud-navmenu { display: flex; gap: 10px; }
    .adm .adm-side .mud-nav-item { flex: none; }
    .adm .bulkbar > .mud-select { flex: 1 1 150px; }
}

/* auditor fixes: one-column category tree, aligned bulk bar controls */
.cat-tree, .cat-tree.mud-radio-group { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; }
.bulkbar { align-items: stretch; }
.bulkbar .mud-input-control, .bulkbar .live-search { margin-top: 0; }
.cat-tree .mud-radio { display: flex !important; width: 100%; margin: 0 !important; }
.cat-tree .mud-radio-group { flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch; }
.cat-tree .mud-radio-group, .cat-tree .mud-input-control-input-container { align-items: flex-start !important; justify-content: flex-start !important; } .cat-tree .mud-radio { justify-content: flex-start; }
/* Live walkthrough: contain grids and keep control tracks within their cards. */
.adm .users-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.adm .metabox, .adm .metabox-body, .adm .field { min-width: 0; }
.adm .field { grid-template-columns: minmax(0, 1fr); }
.adm .field .mud-input-control, .adm .field .mud-select { width: 100%; max-width: 100%; }
.adm .bulkbar .mud-input-control-helper-container { display: none; }
.adm .bulkbar .mud-input, .adm .bulkbar .live-search-row { height: 40px; margin-top: 0; }
.adm .bulkbar .mud-input-slot { height: 40px; box-sizing: border-box; padding: 8px 12px; border: 0; background: transparent; }
.adm .bulkbar .mud-input-control { margin: 0; }
.adm .content-table table tbody tr { height: 82px; }
.adm .content-table table td { white-space: nowrap; }
.adm .content-table td.title { min-width: 270px; }
.adm .content-table td.title > .mud-link { display: inline-block; max-width: 360px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.adm .content-table .row-links { flex-wrap: nowrap; min-height: 28px; margin-top: 3px; }
.adm .content-table .row-links .mud-link, .adm .content-table .row-links .mud-button { font: inherit; text-transform: none; line-height: 28px; min-height: 28px; padding: 0; }
@media (max-width: 900px) {
    .adm .adm-side { display: block; overflow: visible; }
    .adm .adm-side .mud-navmenu { flex-wrap: wrap; }
    .adm .adm-side .mud-nav-item { width: auto; }
    .adm .users-grid { grid-template-columns: minmax(0, 1fr); }
}

/* In-memory chat moderation controls. */
.chat-mute-row { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:8px 0; }
.adm .features-settings .hint, .adm .chat-moderation .hint { color: #a4afa7; }

/* ---- newsletter console ---- */
.newsletter-status { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius); background: rgba(255,255,255,.02); }
.newsletter-status.ok { border-left-color: var(--green); }
.newsletter-status.warn { border-left-color: var(--amber); }
.newsletter-preview { min-height: 520px; background: #fff; }
.newsletter-preview iframe { width: 100%; min-height: 640px; border: 0; background: #fff; }
.newsletter-text { margin: 0; padding: 16px 18px; min-height: 520px; white-space: pre-wrap; font: 14px/1.6 "Courier New", Consolas, monospace; overflow: auto; }
.send-confirm { border-color: var(--amber); }
.failure-list { margin: 10px 0 0; padding-left: 18px; font-size:14px; color: var(--soft); }
.ed-panes textarea.hidden { display: none; }

/* "NEW" badge: light text on the bright fill was unreadable. */
.adm .mud-chip.mud-chip-filled.mud-chip-color-primary { color: #04120a; background-color: var(--green, #35ff4f); font-weight: 700; }
