/* WireTap panel — forms, billing, badges */

.panel-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 32px 24px;
    padding: 16px 20px;
    min-height: 52px;
    background: var(--bg-card);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.45;
}

.panel-notice > span {
    flex: 1;
}

.panel-notice i {
    font-size: 22px;
    color: var(--accent-orange);
    flex-shrink: 0;
    line-height: 1;
}

.panel-notice-success {
    border-color: rgba(63, 185, 80, 0.4);
}

.panel-notice-success i {
    color: #3fb950;
}

.panel-notice-warning {
    border-color: rgba(240, 136, 62, 0.5);
}

.panel-notice p {
    margin: 4px 0 0;
}

.status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 6px;
}

.badge-active {
    background: rgba(63, 185, 80, 0.2);
    color: #3fb950;
}

.badge-trial {
    background: rgba(88, 166, 255, 0.2);
    color: var(--accent-blue);
}

.badge-warning {
    background: var(--accent-orange-dim);
    color: var(--accent-orange);
}

.badge-muted {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.box-meta {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.box-card-add {
    border-style: dashed;
}

.box-card-add .add-icon-wrap {
    color: var(--accent-orange);
    font-size: 64px;
}

.add-server-form {
    margin-top: 8px;
}

.add-server-form .panel-input {
    width: 100%;
    margin-bottom: 12px;
}

.panel-input,
.panel-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--tran-02);
    font-family: inherit;
}

.panel-textarea {
    resize: vertical;
    min-height: 120px;
}

.panel-input:focus,
.panel-textarea:focus {
    border-color: var(--accent-orange);
}

.panel-form {
    padding: 0 32px 48px;
    max-width: 720px;
}

.panel-form-wide {
    max-width: none;
}

.settings-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.settings-cards-grid .form-section {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.settings-cards-grid .form-section-wide {
    grid-column: 1 / -1;
}

.settings-form-footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
}

.server-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.panel-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--tran-02);
}

.panel-btn-outline:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.panel-btn-outline-sm {
    margin-top: 0;
    width: 100%;
    justify-content: center;
}

.panel-btn-outline.panel-btn-sm {
    margin-top: 0;
}

.test-result {
    margin: 10px 0 0;
    font-size: 13px;
    min-height: 1.2em;
}

.test-result-ok {
    color: #3fb950;
}

.test-result-fail {
    color: var(--accent-red);
}

.test-result-pending {
    color: var(--text-muted);
}

.panel-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.panel-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-orange);
    flex-shrink: 0;
}

.panel-btn-danger {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--accent-red);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.panel-btn-danger:hover {
    filter: brightness(1.1);
}

.inline-form {
    display: inline;
}

.active-incidents-list {
    padding: 0 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.active-incident-card {
    background: var(--bg-card);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.active-incident-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.active-incident-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.active-incident-meta {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.active-incident-transcript {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 12px;
    line-height: 1.5;
}

.active-incident-hint {
    font-size: 13px;
    color: var(--accent-blue);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.active-incident-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.incident-audio {
    margin: 12px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.incident-audio audio {
    width: 100%;
    max-width: 360px;
    height: 36px;
}

.incident-audio-empty {
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 360px;
}

.audio-download-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-orange);
    text-decoration: none;
}

.audio-download-link:hover {
    text-decoration: underline;
}

.table-container .audio-cell {
    min-width: 200px;
    vertical-align: top;
}

.table-container .audio-cell .incident-audio {
    margin: 0;
}

.table-container .audio-cell audio {
    max-width: 220px;
}

/* Sidebar bottom profile + logout */
.sidebar .bottom-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.sidebar .sidebar-profile-block {
    height: 52px;
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.sidebar .sidebar-profile-inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 12px;
    gap: 12px;
    box-sizing: border-box;
}

.sidebar .sidebar-profile-inner .image {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .sidebar-profile-inner .image img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.sidebar .sidebar-profile-inner .nav-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.sidebar .bottom-menu-links > .sidebar-logout-row {
    width: 100%;
}

.sidebar .bottom-menu-links > .sidebar-logout-row > a {
    width: 100%;
    height: 48px;
}

.rcon-verify-block {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin: 12px 0;
}

.rcon-verify-code-field {
    flex: 0 0 160px;
    margin: 0;
}

.rcon-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3fb950;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 12px;
}

.api-key-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.api-key-input {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.api-key-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.community-info-change {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--accent-red-dim);
    color: var(--accent-red);
    font-size: 20px;
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--tran-02);
}

.community-info-change:hover {
    background: var(--accent-red);
    color: #fff;
}

.panel-notice-empty {
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 88px;
}

.panel-notice-empty i {
    margin-top: 0;
}

.panel-notice-empty span {
    line-height: 1.5;
}

.panel-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--tran-02);
    box-sizing: border-box;
}

.panel-action-btn-sm {
    min-width: 72px;
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.panel-action-btn-primary {
    color: #fff;
    background: var(--accent-orange);
}

.panel-action-btn-primary:hover {
    background: var(--primary-color-hover);
}

.panel-action-btn-danger {
    color: #fff;
    background: var(--accent-red);
}

.panel-action-btn-danger:hover {
    filter: brightness(1.08);
}

.panel-action-btn-danger-outline {
    color: var(--accent-red);
    background: var(--accent-red-dim);
    border: 1px solid var(--accent-red);
}

.panel-action-btn-warning {
    color: #1a1a1a;
    background: #d29922;
}

.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.bot-api-card code {
    font-size: 12px;
}

.form-section {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-lg);
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.form-section-desc code {
    font-size: 12px;
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid-full {
    grid-column: 1 / -1;
}

.panel-field span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.form-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.form-link:hover {
    text-decoration: underline;
}

.table-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.transcript-cell {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.term-pill {
    font-size: 12px;
    background: var(--accent-red-dim);
    color: var(--accent-red);
    padding: 4px 8px;
    border-radius: 6px;
}

.text-muted-small {
    font-size: 12px;
    color: var(--text-muted);
}

.billing-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 32px 20px;
}

@media (max-width: 900px) {
    .billing-plans-grid {
        grid-template-columns: 1fr;
    }
}

.billing-plan-card {
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-lg);
}

.billing-plan-name {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.billing-plan-price {
    margin: 0 0 12px;
}

.billing-pricing-card {
    margin: 0 32px 28px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-lg);
    max-width: 480px;
}

.billing-note-block {
    margin: 0 32px 16px;
}

.billing-stripe-setup code {
    font-size: 12px;
}

.billing-actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.billing-plan-form {
    display: inline;
}

.billing-amount {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
}

.billing-period {
    font-size: 16px;
    color: var(--text-secondary);
}

.billing-features {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.billing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.billing-features i {
    color: #3fb950;
    font-size: 20px;
}

.billing-note {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.billing-table {
    margin-top: 0;
}

.billing-row-active {
    background: var(--accent-orange-dim);
}

.panel-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.panel-btn-secondary {
    padding: 8px 16px;
    font-size: 13px;
    background: var(--bg-secondary);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: not-allowed;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 32px 32px;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.settings-card h2 {
    font-size: 16px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 8px;
}

.setup-steps {
    margin: 12px 0 0;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.setup-steps li {
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .settings-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.cloud-moderation-card {
    margin: 0 32px 24px;
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(20, 24, 32, 0.98) 100%);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.cloud-moderation-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 0;
}

.cloud-moderation-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cloud-moderation-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    max-width: 520px;
}

.cloud-status-pill {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.cloud-status-idle {
    color: #8b949e;
    background: rgba(139, 148, 158, 0.12);
    border-color: rgba(139, 148, 158, 0.25);
}

.cloud-status-starting {
    color: #e8b84a;
    background: rgba(232, 184, 74, 0.12);
    border-color: rgba(232, 184, 74, 0.35);
}

.cloud-status-live {
    color: #3dd68c;
    background: rgba(61, 214, 140, 0.12);
    border-color: rgba(61, 214, 140, 0.35);
    box-shadow: 0 0 20px rgba(61, 214, 140, 0.15);
}

.cloud-status-stopped {
    color: #f07178;
    background: rgba(240, 113, 120, 0.1);
    border-color: rgba(240, 113, 120, 0.3);
}

.cloud-moderation-locked {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 24px 24px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed var(--sidebar-border);
    color: var(--text-secondary);
    font-size: 14px;
}

.cloud-moderation-locked i {
    font-size: 22px;
    opacity: 0.7;
}

.cloud-deploy-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    padding: 20px 24px;
    margin: 16px 24px 0;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-md);
}

.cloud-node-field {
    flex: 1;
    min-width: 220px;
}

.cloud-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cloud-field-hint {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--accent-orange, #f97316);
    opacity: 0.9;
}

.cloud-node-locked {
    flex: 1;
    min-width: 220px;
}

.cloud-node-locked-value {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-md);
}

.cloud-node-flag {
    font-size: 18px;
    line-height: 1;
}

.cloud-node-locked-meta {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
}

.cloud-node-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cloud-node-icon {
    position: absolute;
    left: 14px;
    font-size: 18px;
    color: var(--accent-orange, #f97316);
    pointer-events: none;
    z-index: 1;
}

.cloud-node-chevron {
    position: absolute;
    right: 14px;
    font-size: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.cloud-node-select {
    width: 100%;
    appearance: none;
    background: var(--bg-secondary);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    padding: 12px 40px 12px 42px;
    cursor: pointer;
}

.cloud-node-select:focus {
    outline: none;
    border-color: var(--accent-orange, #f97316);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.cloud-node-select:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.cloud-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cloud-launch-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(249, 115, 22, 0.45);
}

.cloud-launch-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.cloud-runtime-panel {
    padding: 16px 24px 24px;
}

.cloud-bot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.rcon-subscribe-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
}

.rcon-verify-block--locked {
    opacity: 0.55;
    pointer-events: none;
}

.staff-add-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 12px;
}

.staff-discord-field {
    flex: 1;
    min-width: 200px;
}

.staff-role-field {
    min-width: 140px;
}

.staff-table-wrap {
    overflow-x: auto;
    margin-top: 8px;
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.staff-table th,
.staff-table td {
    padding: 12px 12px;
    text-align: left;
    border-bottom: 1px solid var(--sidebar-border);
    vertical-align: middle;
}

.staff-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.staff-table td.staff-actions-col {
    vertical-align: middle;
}

.staff-actions-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.staff-table-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--tran-02);
    white-space: nowrap;
}

.staff-table-btn:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.staff-owner-note {
    font-size: 13px;
    color: var(--text-muted);
}

.staff-remove-btn {
    color: #f07178;
    border-color: rgba(240, 113, 120, 0.35);
}

.server-card-actions-stack {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.server-card-actions-stack .button {
    width: 100%;
}

.server-configure-btn {
    width: 100%;
    justify-content: center;
}

.box-card-selected {
    outline: 2px solid var(--accent-orange, #f97316);
    outline-offset: -2px;
}

.bot-orchestrator-status {
    font-size: 14px;
    margin: 0 0 8px;
}

.bot-status-ok { color: #3dd68c; }
.bot-status-warn { color: #e8b84a; }
.bot-status-fail { color: #f07178; }
.bot-status-muted { color: var(--text-muted); }
.bot-status-pending { color: var(--text-secondary); }

.bot-terminal-wrap {
    border: 1px solid #1e2a3a;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0d1117;
}

.bot-terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 12px;
    color: #8b949e;
    background: #161b22;
    border-bottom: 1px solid #21262d;
}

.bot-terminal-hint {
    font-size: 11px;
    opacity: 0.85;
}

.bot-terminal {
    margin: 0;
    padding: 12px 14px;
    min-height: 220px;
    max-height: 420px;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.45;
    color: #c9d1d9;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ----- Dashboard ----- */
.dashboard-page {
    padding-bottom: 24px;
}

.dashboard-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.dash-alert-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-orange);
    background: var(--accent-orange-dim);
    border: 1px solid rgba(240, 136, 62, 0.35);
    border-radius: 999px;
    text-decoration: none;
    transition: var(--tran-02);
}

.dash-alert-pill:hover {
    background: rgba(240, 136, 62, 0.28);
}

.dash-alert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-orange);
    box-shadow: 0 0 0 0 rgba(240, 136, 62, 0.6);
    animation: dashPulse 2s infinite;
}

@keyframes dashPulse {
    0% { box-shadow: 0 0 0 0 rgba(240, 136, 62, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(240, 136, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(240, 136, 62, 0); }
}

.dashboard-empty-notice {
    margin: 0 32px 20px;
}

.dash-empty-cta {
    display: inline-block;
    margin-top: 12px;
    text-decoration: none;
}

.dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 32px 24px;
}

.dashboard-stats-enhanced {
    padding: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stats-enhanced .stat-card {
    position: relative;
    gap: 2px;
    min-height: 118px;
    overflow: hidden;
}

.dashboard-stats-enhanced .stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 55%);
    pointer-events: none;
}

.stat-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    border-radius: 10px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.stat-card-accent-blue .stat-card-icon {
    color: var(--accent-blue);
    background: rgba(88, 166, 255, 0.15);
}

.stat-card-accent-green .stat-card-icon {
    color: #3fb950;
    background: rgba(63, 185, 80, 0.15);
}

.stat-card-accent-orange .stat-card-icon {
    color: var(--accent-orange);
    background: var(--accent-orange-dim);
}

.stat-card-bot .stat-value-badge {
    font-size: 14px;
    font-weight: 600;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}

.dash-chart-panel,
.dash-week-panel {
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.dashboard-panels .dash-review-banner {
    grid-column: 1 / -1;
}

.dashboard-panels:not(.dashboard-panels-owner) .dash-activity-panel {
    grid-column: 1 / -1;
}

.dashboard-panels-owner .dash-activity-panel,
.dashboard-panels-owner .dash-renewal-panel {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.dash-activity-panel .dash-activity-list,
.dash-activity-panel .dash-empty-state {
    flex: 1;
    min-height: 0;
}

.dash-renewal-body {
    flex: 1;
}

.dash-panel {
    background: var(--bg-card);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 20px;
}

.dash-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.dash-panel-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-panel-desc {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.dash-panel-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-orange);
    text-decoration: none;
}

.dash-panel-link:hover {
    text-decoration: underline;
}

.dash-review-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(240, 136, 62, 0.14) 0%, rgba(240, 136, 62, 0.04) 100%);
    border: 1px solid rgba(240, 136, 62, 0.35);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: var(--tran-02);
}

.dash-review-banner:hover {
    border-color: var(--accent-orange);
    transform: translateY(-1px);
}

.dash-review-banner-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-orange-dim);
    color: var(--accent-orange);
    font-size: 22px;
    flex-shrink: 0;
}

.dash-review-banner strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.dash-review-banner p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.dash-review-banner-arrow {
    margin-left: auto;
    font-size: 22px;
    color: var(--text-muted);
}

.dash-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 180px;
    text-align: center;
    color: var(--text-muted);
}

.dash-empty-state-compact {
    min-height: 100px;
}

.dash-empty-state i {
    font-size: 36px;
    opacity: 0.5;
}

.dash-empty-state p {
    margin: 0;
    max-width: 280px;
    font-size: 13px;
    line-height: 1.5;
}

.dash-activity-panel .dash-activity-list {
    max-height: 240px;
    overflow-y: auto;
}

.dash-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-md);
}

.dash-activity-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

.dash-activity-icon-pending {
    color: var(--accent-orange);
    background: var(--accent-orange-dim);
}

.dash-activity-icon-confirmed {
    color: #3fb950;
    background: rgba(63, 185, 80, 0.15);
}

.dash-activity-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-activity-player {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.dash-activity-meta {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-activity-time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.dash-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dash-metric-grid-compact {
    grid-template-columns: 1fr;
}

.dash-metric-wide {
    grid-column: 1 / -1;
}

.dash-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-md);
}

.dash-metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.dash-metric-label {
    font-size: 12px;
    color: var(--text-muted);
}

.dash-quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--tran-02);
}

.dash-quick-link:hover {
    color: var(--text-primary);
    border-color: rgba(240, 136, 62, 0.45);
    background: var(--bg-card-hover);
}

.dash-quick-link i {
    font-size: 18px;
    color: var(--text-muted);
}

.dash-quick-badge {
    margin-left: auto;
    min-width: 22px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: var(--accent-orange);
    background: var(--accent-orange-dim);
    border-radius: 999px;
}

.dash-renewal-panel .dash-panel-header {
    align-items: center;
    margin-bottom: 12px;
}

.dash-renewal-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.dash-renewal-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.dash-renewal-date {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.dash-renewal-note {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.dash-renewal-link {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-orange);
    text-decoration: none;
}

.dash-renewal-link:hover {
    text-decoration: underline;
}

.dash-chart-panel {
    display: flex;
    flex-direction: column;
}

.dash-chart-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.dash-chart-total {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: -0.02em;
    line-height: 1;
}

.dash-chart-total-label {
    font-size: 12px;
    color: var(--text-muted);
}

.dash-chart-wrap {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
}

.dash-chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 0 28px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
}

.dash-chart-plot {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-chart-plot-inner {
    position: relative;
}

.dash-chart-svg {
    display: block;
    width: 100%;
    height: 150px;
    overflow: visible;
}

.dash-chart-dots {
    position: absolute;
    inset: 0 0 auto 0;
    height: 150px;
    pointer-events: none;
}

.dash-chart-dot-marker {
    position: absolute;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    margin-top: -5px;
    border-radius: 50%;
    background: #0f1117;
    border: 2.5px solid var(--accent-orange);
    box-sizing: border-box;
    pointer-events: auto;
}

.dash-chart-grid-line {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1;
}

.dash-chart-line {
    stroke: var(--accent-orange);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dash-chart-x-axis {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-top: 10px;
}

.dash-chart-x-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.dash-chart-x-day {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.dash-chart-x-count {
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 1100px) {
    .dashboard-stats-enhanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-panels {
        grid-template-columns: 1fr;
    }

    .dashboard-panels:not(.dashboard-panels-owner) .dash-activity-panel,
    .dashboard-panels .dash-review-banner {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .dashboard-shell {
        padding: 0 20px 24px;
    }

    .dashboard-empty-notice {
        margin: 0 20px 16px;
    }

    .dashboard-stats-enhanced {
        grid-template-columns: 1fr;
    }

    .dash-chart-wrap {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 8px;
    }
}
