:root {
    --bg: #0D121C;
    --panel: #ffffff;
    --muted: #6b7280;
    --accent: #78a300;
    /* Zendesk-like green */
    --accent-dark: #5e7b00;
    --shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    --radius: 10px;
    --max-width: 1100px;
}

/* Base */
* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg);
    color: #0f1724;
}

a {
    text-decoration: none;
    color: white;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 20px;
}

/* Header */
.site-header {
    background: #192132;
    color: white;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.brand h1 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.2px
}

.brand .subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: .95
}

.header-actions .btn {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04)
}

/* Layout */
.layout {
    display: flex;
    gap: 28px;
    padding: 28px 12px
}

.sidebar {
    width: 280px
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.sidebar nav li {
    margin: 8px 0
}

.sidebar a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 10px;
    display: inline-block;
    border-radius: 8px
}

.sidebar a.active {
    background: #eef7e6;
    color: var(--accent);
    font-weight: 600
}

.sidebar-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted)
}

.content {
    flex: 1;
    min-width: 0
}

/* Toolbar / search */
.toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px
}

#searchForm {
    width: 100%;
    max-width: 520px
}

#searchInput {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, #fff, #fbfdff);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
    font-size: 14px
}

#searchInput:focus {
    outline: none;
    box-shadow: 0 6px 18px rgba(120, 163, 0, 0.12);
    border-color: var(--accent)
}

/* Cards grid */
.blocks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px
}

.block {
    background: var(--panel);
    border-radius: 14px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.04);
    display: block;
    transition: transform .18s cubic-bezier(.2, .9, .3, 1), box-shadow .18s cubic-bezier(.2, .9, .3, 1)
}

.block:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12)
}

.block h2 {
    margin: 0 0 8px;
    font-size: 16px
}

.block p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45
}

/* Card header modern */
.card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    font-size: 14px
}

.card-title {
    flex: 1;
    font-weight: 700
}

.badge {
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 999px;
    background: #eef7e6;
    color: var(--accent);
    font-weight: 700
}

.card-meta {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    display: flex;
    gap: 12px;
    align-items: center
}

/* Detail view */
.request-detail {
    background: var(--panel);
    padding: 26px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06)
}

.request-detail .back {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600
}

.request-detail .detail-title {
    margin: 6px 0 8px;
    font-size: 20px
}

.request-detail .meta {
    color: var(--muted);
    margin-bottom: 12px
}

.request-detail .detail-body {
    font-size: 15.5px;
    color: #131921;
    line-height: 1.6
}

/* Responsive */
@media (max-width:900px) {
    .layout {
        flex-direction: column;
        padding: 16px
    }

    .sidebar {
        width: 100%
    }
}

/* Small helpers */
.btn {
    display: inline-block
}

/* Chat box styles */
.chat-wrapper {
    margin-top: 22px
}

.chat-title {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--muted);
    font-weight: 600
}

.chat-box {
    background: var(--bg);
    border-radius: 12px;
    padding: 14px;
    max-height: 420px;
    overflow: auto;
    border: 1px solid rgba(15, 23, 42, 0.04);
    scroll-behavior: smooth
}

.chat-empty {
    color: var(--muted);
    padding: 18px;
    text-align: center
}

.message {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    max-width: 78%
}

.message .message-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px
}

.bubble {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.45
}

.message.staff .bubble {
    background: linear-gradient(180deg, #eef7d6, #e6f0d6);
    color: #071b00;
    border-radius: 14px 14px 14px 6px
}

.message.user {
    align-self: flex-end;
    text-align: right
}

.message.user .bubble {
    background: #f7fafc;
    color: #041025;
    border-radius: 14px 14px 6px 14px
}

.chat-box::-webkit-scrollbar {
    width: 10px
}

.chat-box::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.12));
    border-radius: 999px
}

.meta-panel {
    margin-top: 16px;
    background: var(--panel);
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.04)
}

.meta-panel h4 {
    margin: 0 0 10px
}

.meta-panel .tag {
    display: inline-block;
    background: #eef7e6;
    color: var(--accent);
    padding: 6px 10px;
    border-radius: 999px;
    margin: 6px 6px 0 0;
    font-size: 12px;
    font-weight: 700
}

.layout {
    display: flex;
    align-items: flex-start
}

.content {
    flex: 1
}

.sidebar {
    width: 280px
}

@media (max-width:900px) {
    .chat-box {
        max-height: 300px
    }
}