:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: #eef0f4;
  background: #0b1016;
  font-size: 14px;
  font-synthesis: none;
  --gold: #f6c938;
  --gold-dark: #b99223;
  --border: #27313c;
  --surface: #141c25;
  --surface-alt: #1a2430;
  --muted: #929fae;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
h1,h2,h3,p { margin: 0; }
a { color: inherit; text-decoration: none; }
button,input,textarea,select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; width: 242px; padding: 23px 13px 18px; background: #090e14; border-right: 1px solid #222e3b; flex-shrink: 0; }
.sidebar-brand { display: flex; gap: 11px; align-items: center; padding: 0 7px 19px; }
.brand-crown { color: var(--gold); display: grid; place-items: center; }
.brand-crown .icon { width: 38px; height: 38px; stroke-width: 1.6; }
.brand-name strong { display: block; font-size: 14px; letter-spacing: -.015em; white-space: nowrap; }
.brand-name em { color: var(--gold); font-style: normal; }
.brand-name small { display: block; margin-top: 4px; letter-spacing: .22em; color: #8d97a4; font-size: 9px; }
.sidebar-divider { height: 1px; background: #232e3a; margin: 0 -13px 24px; }
.nav-label { padding: 0 13px; color: #59697a; font-weight: 800; font-size: 9px; letter-spacing: .17em; margin: 0 0 12px; }
.navigation { display: grid; align-content: start; gap: 5px; }
.nav-item { width: 100%; min-height: 43px; display: flex; align-items: center; gap: 12px; border: 1px solid transparent; color: #b8c3cf; background: transparent; text-align: left; padding: 0 13px; border-radius: 7px; font-weight: 550; font-size: 12px; transition: background .16s, color .16s; }
.nav-item .icon { width: 17px; height: 17px; }
.nav-item:hover:not(.nav-disabled) { color: #fff; background: #1a2531; }
.nav-item.active { color: var(--gold); border-color: #695419; background: linear-gradient(90deg,#342d12,#211f15); box-shadow: inset 3px 0 0 var(--gold); }
.nav-separator { height: 1px; background: #1f2935; margin: 15px 12px 20px; }
.nav-disabled { color: #596577; cursor: default; }
.nav-disabled small { margin-left: auto; color: #826f3a; letter-spacing: .03em; font-size: 9px; }
.sidebar-bottom { margin-top: auto; padding: 15px 9px 0; border-top: 1px solid #27313b; }
.bot-status { color: #9cabb9; font-size: 10px; display: flex; gap: 8px; align-items: center; margin-bottom: 20px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #43c47b; box-shadow: 0 0 0 3px #43c47b17; flex-shrink: 0; }
.sidebar-profile { display: flex; gap: 10px; align-items: center; }
.user-avatar { width: 33px; height: 33px; border-radius: 50%; display: inline-grid; place-items: center; color: #ffdf7a; font-size: 13px; font-weight: 800; background: linear-gradient(140deg,#664f21,#2a3045); border: 1px solid #6e5632; flex-shrink: 0; }
.sidebar-user strong, .sidebar-user small { display: block; }
.sidebar-user strong { font-size: 12px; color: #eaeef4; }
.sidebar-user small { font-size: 10px; color: #8897a5; margin-top: 4px; }
.workspace { min-width: 0; flex: 1; background: radial-gradient(ellipse at 95% 1%,#131c29 0%,transparent 41%), #0b1118; }
.topbar { height: 71px; border-bottom: 1px solid #293540; background: #0d141cda; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; }
.breadcrumbs { display: flex; align-items: center; gap: 12px; color: #818f9f; font-size: 12px; }
.breadcrumbs .icon { width: 12px; height: 12px; }
.breadcrumbs strong { color: #f5f7fa; font-weight: 650; }
.top-actions { display: flex; gap: 12px; align-items: center; font-size: 11px; color: #cbd4dd; }
.access-label { display: flex; align-items: center; gap: 7px; color: #a3b2c0; }
.access-label .icon { width: 15px; height: 15px; color: #4ccf87; }
.top-divider { width: 1px; height: 24px; background: #29333d; margin: 0 5px; }
.top-avatar { width: 29px; height: 29px; }
.top-username { font-weight: 700; }
.signout { display: grid; place-items: center; color: #8594a4; background: transparent; border: 0; padding: 4px; border-radius: 5px; }
.signout:hover { color: #f4cb45; background: #1a2730; }
.signout .icon { width: 16px; height: 16px; }
.main-content { max-width: 1560px; margin: 0 auto; padding: 30px 34px 72px; }
.hero-banner { position: relative; overflow: hidden; background: radial-gradient(circle at 81% 25%,#4d3823aa 0%,transparent 19%), linear-gradient(105deg,#16212c 3%,#192330 51%,#2c2430 84%,#17232c 100%); border: 1px solid #37404a; border-radius: 13px; min-height: 225px; display: flex; align-items: center; margin-bottom: 32px; }
.hero-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #101923 0%, #141e28f5 35%, transparent 100%), repeating-linear-gradient(90deg,transparent 0 72px,#07141d16 72px 74px); pointer-events: none; }
.hero-banner::after { content: ''; pointer-events: none; position: absolute; right: 6%; bottom: -1px; height: 56%; width: 43%; opacity: .38; background: linear-gradient(0deg, #070d14 0 9%, transparent 9%), linear-gradient(to top,#0a1019 0 36%,transparent 36%) 0 80% / 12% 100% no-repeat,linear-gradient(to top,#0a1019 0 82%,transparent 82%) 12% 70% / 12% 100% no-repeat,linear-gradient(to top,#0a1019 0 66%,transparent 66%) 26% 90% / 14% 100% no-repeat,linear-gradient(to top,#0a1019 0 100%,transparent 100%) 46% 90% / 12% 100% no-repeat,linear-gradient(to top,#0a1019 0 74%,transparent 74%) 65% 95% / 14% 100% no-repeat,linear-gradient(to top,#0a1019 0 57%,transparent 57%) 84% 100% / 15% 100% no-repeat; }
.hero-content { position: relative; z-index: 1; padding: 30px 34px; max-width: 760px; }
.eyebrow { color: var(--gold); letter-spacing: .15em; font-weight: 800; font-size: 10px; }
.hero-content h1 { font-size: clamp(26px,2.7vw,36px); letter-spacing: -.04em; margin-top: 13px; margin-bottom: 9px; font-weight: 750; line-height: 1.13; }
.gold-text { color: var(--gold); }
.hero-content p:not(.eyebrow) { color: #abb6c2; line-height: 1.65; font-size: 12px; max-width: 470px; }
.hero-content .button { margin-top: 18px; }
.hero-watermark { font-size: 148px; font-weight: 900; letter-spacing: -.11em; color: #f0ba3a0a; position: absolute; right: 55px; top: -22px; user-select: none; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 15px; }
.section-head h2 { font-size: 19px; letter-spacing: -.03em; }
.section-head p { color: #8d9aa9; font-size: 11px; margin-top: 6px; }
.section-caption { color: #69798a; font-weight: 800; font-size: 9px; letter-spacing: .14em; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.stat-card { border-radius: 11px; border: 1px solid #2c3946; background: linear-gradient(150deg,#17212c,#111a24); padding: 19px 18px; min-height: 165px; }
.stat-icon,.action-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; margin-bottom: 17px; }
.stat-icon.gold,.action-icon.gold { color: #ffd33d; background: #3d3216; }
.stat-icon.green,.action-icon.green { color: #54ce80; background: #193a31; }
.stat-icon.blue,.action-icon.blue { color: #77abff; background: #1b3454; }
.stat-icon.violet { color: #b295ff; background: #342b53; }
.stat-icon .icon { width: 20px; height: 20px; }
.stat-card p { font-size: 12px; color: #aebbc9; margin: 0 0 5px; }
.stat-card strong { display: block; font-size: 29px; letter-spacing: -.045em; line-height: 1.23; }
.stat-card small { display: block; color: #738292; font-size: 10px; margin-top: 5px; }
.dashboard-columns { margin-top: 21px; display: grid; grid-template-columns: minmax(0,1.6fr) minmax(260px,.9fr); gap: 20px; align-items: start; }
.surface-card { background: linear-gradient(155deg,#151f2a,#111923); border: 1px solid #2d3946; border-radius: 11px; overflow: hidden; }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.card-heading h2,.history-header h2 { font-size: 15px; letter-spacing: -.02em; }
.card-heading p,.history-header p { color: #8f9cab; font-size: 11px; margin-top: 6px; line-height: 1.5; }
.activity-card,.quick-card { padding-top: 21px; }
.activity-card .card-heading,.quick-card .card-heading { padding: 0 21px 18px; }
.link-button { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-size: 11px; font-weight: 700; background: transparent; border: 0; white-space: nowrap; padding: 2px; }
.link-button .icon { width: 14px; height: 14px; }
.link-button:hover { color: #ffe38b; }
.table-wrap { width: 100%; overflow: auto; }
table { border-collapse: collapse; width: 100%; white-space: nowrap; text-align: left; }
th { background: #1b2732; text-transform: uppercase; color: #7f90a1; font-size: 9px; letter-spacing: .08em; font-weight: 800; }
th,td { padding: 13px 17px; border-bottom: 1px solid #26323e; }
td { font-size: 11px; color: #d8e0e7; }
tr:last-child td { border-bottom: 0; }
.post-title { font-weight: 650; color: #e9edf4; }
.cell-muted { color: #90a0af; }
.type-badge { display: inline-block; text-transform: capitalize; font-size: 10px; font-weight: 750; border-radius: 4px; padding: 5px 7px; }
.type-announcement { background: #e8bc3f; color: #211d0c; }
.type-changelog { background: #2859a3; color: #dceaff; }
.table-link-icon { width: 16px; height: 16px; color: #bdc7d1; }
.table-link-icon:hover { color: var(--gold); }
.quick-card { padding-bottom: 13px; }
.action-tile { display: flex; align-items: center; gap: 11px; text-align: left; width: calc(100% - 26px); margin: 0 13px 9px; background: #1a2733; border: 1px solid #283847; border-radius: 8px; padding: 11px 10px; color: #e4ebf3; }
.action-tile:hover { border-color: #7d692c; background: #212b33; }
.action-tile .action-icon { margin-bottom: 0; width: 35px; height: 35px; }
.action-tile strong,.action-tile small { display: block; }
.action-tile strong { font-size: 11px; }
.action-tile small { color: #95a2ae; font-size: 10px; margin-top: 5px; }
.action-chevron { margin-left: auto; width: 14px; height: 14px; color: #728191; }
.security-hint { display: flex; align-items: start; gap: 9px; font-size: 10px; color: #798a9b; line-height: 1.6; padding: 13px 21px 4px; }
.security-hint .icon { width: 15px; height: 15px; }
.empty-state { text-align: center; color: #98a6b5; padding: 40px 20px 47px; }
.empty-symbol { display: grid; place-items: center; margin: 0 auto 12px; width: 46px; height: 46px; border-radius: 12px; background: #27323e; color: #e3c34b; }
.empty-state h3 { color: #e7ebef; font-size: 14px; margin-bottom: 6px; }
.empty-state p { font-size: 11px; margin-bottom: 15px; line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; border: 0; font-weight: 800; font-size: 11px; padding: 12px 15px; transition: background .14s; }
.button .icon { width: 15px; height: 15px; }
.gold-button { background: #f6cd47; color: #1c1a10; box-shadow: 0 5px 19px #dbab1514; }
.gold-button:hover { background: #ffdf73; }
.gold-button:disabled { background: #8d814c; color: #4e4a34; cursor: not-allowed; }
.outline-button { color: #f1ce5a; border: 1px solid #71602d; background: #302914; }
.outline-button:hover { background: #4b3c19; }
.page-title { margin: 6px 0 25px; }
.page-title h1 { margin: 8px 0 8px; font-size: 27px; letter-spacing: -.035em; }
.page-title > p:last-child { color: #96a3b3; font-size: 12px; line-height: 1.6; }
.editor-grid { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(340px,.92fr); gap: 20px; align-items: start; }
.editor-card,.preview-card { padding: 23px; }
.editor-card .card-heading,.preview-card .card-heading { margin-bottom: 19px; }
.subtle-tag { background: #202c39; border: 1px solid #344352; padding: 6px 8px; font-size: 9px; color: #a7b5c4; font-weight: 750; border-radius: 4px; white-space: nowrap; }
label { display: block; color: #d5dee9; font-size: 11px; margin: 17px 0 8px; font-weight: 650; }
.required { color: #e9bb38; }
input,textarea,select { color: #e5edf6; background: #0d151f; border: 1px solid #334354; width: 100%; padding: 11px 12px; border-radius: 5px; outline: none; }
input::placeholder,textarea::placeholder { color: #647485; }
input:focus,textarea:focus,select:focus { border-color: #e2b940; box-shadow: 0 0 0 2px #efbb3c22; }
textarea { resize: vertical; min-height: 80px; line-height: 1.55; }
.dual-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.editor-note { border: 1px solid #344052; border-radius: 6px; color: #9cabb7; background: #1a2632; margin-top: 20px; padding: 11px; font-size: 10px; display: flex; align-items: center; gap: 8px; line-height: 1.5; }
.editor-note .icon { width: 15px; height: 15px; color: #edc955; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 23px; }
.changelog-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 15px; }
.change-block label { margin-top: 20px; }
.change-label { display: inline-block; font-size: 10px; letter-spacing: .03em; font-weight: 850; }
.change-label.added { color: #53d47e; }.change-label.changed { color: #66a7f5; }.change-label.fixed { color: #f06e73; }.change-label.removed { color: #a9b4c1; }
.preview-card { position: sticky; top: 22px; }
.live-pill { color: #69d89f; background: #16392d; font-size: 10px; font-weight: 800; padding: 6px 10px; border-radius: 12px; white-space: nowrap; }
.live-pill .status-dot { width: 6px; height: 6px; margin-right: 5px; }
.discord-preview { border-radius: 6px; background: #25272e; padding: 18px 14px; overflow-wrap: anywhere; color: #e5e7ec; }
.discord-author { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; font-size: 12px; }
.mini-avatar { width: 32px; height: 32px; display: grid; place-items: center; color: #f5ca46; background: #11151e; border-radius: 50%; flex-shrink: 0; }
.mini-avatar .icon { width: 23px; height: 23px; }
.app-pill { padding: 3px 5px; border-radius: 4px; background: #5865f2; color: white; font-size: 8px; font-weight: 850; }
.discord-timestamp { color: #aab0bb; font-size: 10px; }
.embed-wrap { background: #2e3039; padding: 13px; border-left: 4px solid #d5b94a; border-radius: 4px; margin-left: 39px; max-width: 100%; }
.embed-wrap h3 { font-size: 13px; margin-bottom: 8px; }
.embed-wrap p { font-size: 11px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 37px; margin-bottom: 16px; }
.embed-footer { color: #b4b8c3; font-size: 9px; }
.preview-footnote { color: #8091a1; line-height: 1.6; font-size: 10px; margin-top: 15px; }
.history-card { padding-bottom: 6px; }
.history-header { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.count-chip { background: #2d3944; color: #cad2db; border-radius: 12px; padding: 3px 7px; font-size: 10px; margin-left: 6px; }
.filters { display: flex; gap: 9px; align-items: center; }
.filters select { width: 143px; font-size: 11px; padding: 10px; }
.search-field { margin: 0; display: flex; align-items: center; gap: 7px; padding-left: 10px; border-radius: 5px; border: 1px solid #344152; background: #0d151f; }
.search-field:focus-within { border-color: #e2b940; }
.search-field .icon { width: 15px; height: 15px; color: #8193a3; }
.search-field input { border: 0; background: transparent; width: 200px; padding: 10px 8px 10px 0; font-size: 11px; }
.search-field input:focus { border: 0; box-shadow: none; }
.history-table td { padding: 15px 20px; }
.table-open { display: inline-flex; align-items: center; gap: 6px; color: #e9c447; font-weight: 700; }
.table-open .icon { width: 13px; height: 13px; }
.no-match { color: #9eafbd; text-align: center; padding: 25px; }
.notice { padding: 13px 18px; display: flex; align-items: center; gap: 9px; border-radius: 7px; font-size: 12px; line-height: 1.55; margin-bottom: 19px; }
.notice .icon { width: 16px; height: 16px; }
.notice.success { background: #173a2d; border: 1px solid #3b8a60; color: #aaf1c6; }
.notice.danger { background: #4a2227; border: 1px solid #873b45; color: #ffd6d8; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 21%, #3b321c 0%, #182027 28%, #0b1118 65%); }
.login-card { background: #141e29; border: 1px solid #44505c; border-radius: 16px; max-width: 450px; width: 100%; text-align: center; padding: 42px 32px; box-shadow: 0 26px 85px #0008; }
.login-crown { display: grid; place-items: center; width: 70px; height: 70px; color: var(--gold); margin: 0 auto 25px; border: 1px solid #66501f; border-radius: 16px; background: #292714; }
.login-crown .icon { width: 42px; height: 42px; }
.login-card h1 { font-size: 28px; margin: 9px 0 9px; letter-spacing: -.035em; }
.login-card .muted { color: #9dabb8; line-height: 1.75; font-size: 12px; margin-bottom: 23px; }
.login-card .button { width: 100%; }
.login-card .small-muted { color: #7f91a1; font-size: 10px; margin-top: 19px; }
@media (max-width: 1240px) { .dashboard-columns { grid-template-columns: 1fr; } .stats-grid { gap: 10px; } .stat-card { padding: 15px; } }
@media (max-width: 1040px) { .editor-grid { grid-template-columns: 1fr; } .preview-card { position: static; } .hero-watermark { display: none; } }
@media (max-width: 800px) { .sidebar { width: 190px; } .brand-name strong { font-size: 12px; } .brand-crown .icon { width: 30px; height: 30px; } .main-content { padding: 22px 18px 55px; } .topbar { padding: 0 18px; } .stats-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .app-shell { display: block; } .sidebar { width: 100%; height: auto; padding: 12px; position: static; } .sidebar-brand { padding: 0 3px 10px; } .sidebar-divider,.sidebar-bottom,.nav-label,.nav-separator,.nav-disabled { display: none; } .navigation { display: flex; overflow-x: auto; padding-bottom: 3px; } .nav-item { width: auto; min-width: max-content; padding: 0 11px; } .nav-item .icon { width: 16px; height: 16px; } .topbar { height: 52px; } .access-label,.top-username { display: none; } .main-content { padding: 17px 12px 50px; } .hero-banner { min-height: 200px; } .hero-content { padding: 25px 18px; } .hero-content h1 { font-size: 26px; } .stats-grid { gap: 9px; } .stat-card { min-height: 145px; } .stat-card strong { font-size: 24px; } .section-caption { display: none; } .dual-fields,.changelog-fields { grid-template-columns: 1fr; } .editor-card,.preview-card { padding: 16px; } .embed-wrap { margin-left: 0; } .history-header { align-items: stretch; flex-direction: column; } .filters { align-items: stretch; } .search-field { flex: 1; min-width: 0; } .search-field input { width: 100%; } .filters select { width: 118px; } }

.demo-banner { border: 1px solid #7f6722; background:#312b1a; color:#f0d782; justify-content:center; text-align:center; font-weight:700; letter-spacing:.02em; }

/* Support ticket management — Stage 2 */
.nav-count { margin-left:auto; min-width:19px; height:19px; padding:2px 5px; border-radius:12px; background:#8b6920; color:#ffe29a; text-align:center; font-size:10px; font-weight:800; }
.ticket-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.ticket-stat { background:linear-gradient(145deg,#182430,#111922); border:1px solid #303d4b; border-radius:9px; padding:19px 20px; }
.ticket-stat span,.ticket-stat small { display:block; color:#a9b5c2; font-size:11px; }
.ticket-stat strong { display:block; font-size:30px; margin:9px 0 3px; color:#f4cf59; }
.ticket-stat small { color:#677f90; }
.ticket-top-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:20px; margin-bottom:21px; align-items:stretch; }
.ticket-setup { padding:21px 24px; }
.ticket-setup-controls { display:flex; align-items:center; gap:10px; }
.ticket-setup-controls select { min-width:0; flex:1; }
.ticket-setup-controls .button { white-space:nowrap; }
.ticket-help { color:#90a2b1; font-size:11px; line-height:1.6; margin-top:15px; }
.ticket-alert { border:1px solid #7b5e23; background:#332b1b; border-radius:7px; padding:15px; }
.ticket-alert strong { color:#ffe08b; font-size:12px; }
.ticket-alert p { color:#d7c29a; font-size:11px; line-height:1.8; margin-top:7px; }
.ticket-alert code { color:#fff0b7; }
.ticket-categories { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.ticket-categories > div { background:#101923; border:1px solid #2d3b48; border-radius:7px; padding:12px 11px; display:flex; align-items:flex-start; gap:10px; }
.ticket-categories strong,.ticket-categories small { display:block; }
.ticket-categories strong { font-size:11px; }
.ticket-categories small { color:#8294a5; font-size:10px; line-height:1.45; margin-top:4px; }
.ticket-emoji { font-size:19px; }
.ticket-list { margin-top:4px; }
.ticket-rows { padding:0 19px 16px; }
.ticket-entry { border:1px solid #2f3d4a; background:#111b25; border-radius:7px; margin-bottom:9px; }
.ticket-entry[open] { border-color:#685629; }
.ticket-summary { display:flex; cursor:pointer; list-style:none; gap:15px; align-items:center; padding:15px 17px; }
.ticket-summary::-webkit-details-marker { display:none; }
.ticket-id { color:#f6d064; font-size:11px; font-weight:800; min-width:78px; }
.ticket-name { flex:1; min-width:0; }
.ticket-name strong { display:block; color:#e5edf4; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ticket-name small { display:block; color:#8d9da8; font-size:10px; margin-top:5px; }
.ticket-state { border-radius:20px; padding:5px 10px; font-size:10px; text-transform:capitalize; font-weight:800; }
.ticket-open { color:#7df0a7; background:#1a4832; }
.ticket-closed { color:#b5c1ce; background:#32404d; }
.ticket-date { color:#8c9aa7; font-size:11px; min-width:86px; text-align:right; }
.ticket-expand { color:#c3a54b; font-size:19px; }
.ticket-detail { border-top:1px solid #2d3c49; padding:18px 20px 21px; }
.ticket-description { display:flex; justify-content:space-between; align-items:flex-start; gap:22px; margin-bottom:19px; }
.ticket-description strong { color:#d8e0e7; font-size:11px; }
.ticket-description p { white-space:pre-wrap; overflow-wrap:anywhere; color:#adb9c5; font-size:11px; line-height:1.75; max-width:750px; margin-top:9px; }
.ticket-description a { white-space:nowrap; font-size:11px; }
.ticket-reply-form textarea { min-height:75px; }
.ticket-reply-form .button { margin-top:9px; }
.ticket-close-form { display:flex; align-items:center; gap:11px; margin-top:15px; padding-top:14px; border-top:1px solid #2c3844; }
.ticket-close-form span,.ticket-archived { color:#899aaa; font-size:10px; line-height:1.6; }
.ticket-danger-button { background:#542730; border:1px solid #904653; color:#ffd5d8; white-space:nowrap; }
.ticket-danger-button:hover { background:#71333c; }
@media(max-width:1050px) { .ticket-top-grid { grid-template-columns:1fr; } }
@media(max-width:620px) { .ticket-stats { gap:7px; } .ticket-stat { padding:13px 9px; } .ticket-stat strong { font-size:23px; } .ticket-categories { grid-template-columns:1fr; } .ticket-setup-controls { display:block; } .ticket-setup-controls .button { margin-top:9px; } .ticket-summary { gap:9px; padding:12px 9px; flex-wrap:wrap; } .ticket-id { min-width:auto; } .ticket-date { display:none; } .ticket-rows { padding:0 8px 11px; } .ticket-description { display:block; } .ticket-description a { display:inline-flex; margin-top:15px; } }

/* Black Crown RP v0.3 ticket conversation extension */
.ticket-conversation { padding:14px 0; border-top:1px solid #2d3c49; margin:12px 0; }
.ticket-conversation h3 { color:#f0f3f5; font-size:13px; margin-bottom:12px; }
.ticket-conversation-empty { color:#98a7b5; font-size:12px; }
.ticket-message { max-width:85%; padding:12px 14px; margin:10px 0; border:1px solid #344555; background:#18232d; border-radius:10px; }
.ticket-message-staff { margin-left:auto; border-color:#827128; background:#302d1d; }
.ticket-message-meta { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; color:#e4e9ed; font-size:11px; }
.ticket-message-meta span { color:#9ba8b3; }
.ticket-message p { white-space:pre-wrap; overflow-wrap:anywhere; color:#d5dde4; font-size:12px; margin-top:8px; }

/* Black Crown RP v0.4 live ticket inbox */
.ticket-entry.ticket-has-unread { border-color:#8a6c25; box-shadow:0 0 0 1px #8a6c2538; }
.ticket-unread-badge { background:#9d3038; color:#fff; border-radius:20px; padding:4px 8px; font-size:9px; font-weight:900; white-space:nowrap; }
.ticket-claim-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:0 0 14px; color:#9fafbc; font-size:11px; }
.ticket-claim-button { background:#263747; border:1px solid #465c70; color:#e5edf4; padding:8px 12px; }
.ticket-claim-button:hover { background:#30465a; }
.ticket-live-flash { animation:ticketFlash 1.2s ease; }
@keyframes ticketFlash { 0% { background:#463d1d; } 100% { background:#18232d; } }

/* Black Crown RP v0.5 ticket management */
.ticket-attachments{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.ticket-attachments a{display:flex;flex-direction:column;gap:5px;color:#f6c938;text-decoration:none}.ticket-attachments img{max-width:280px;max-height:190px;object-fit:cover;border-radius:8px;border:1px solid rgba(255,255,255,.12)}.ticket-notes{margin-top:18px;padding:14px;border:1px solid rgba(246,201,56,.2);border-radius:10px;background:rgba(246,201,56,.035)}.ticket-note{margin:8px 0;padding:10px 12px;border-left:3px solid #f6c938;background:rgba(255,255,255,.025);border-radius:6px}.ticket-note p{margin:7px 0 0}.ticket-note-form{display:flex;gap:10px;align-items:flex-end;margin-top:12px}.ticket-note-form textarea{flex:1}.ticket-transcript-button{display:inline-flex;margin-top:12px}.ticket-has-unread summary{box-shadow:inset 3px 0 0 #f6c938}
