:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #f4f6fb; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { border: 0; border-radius: 8px; background: #2864e8; color: #fff; cursor: pointer; font-weight: 650; padding: 9px 14px; }
button:hover { background: #1d52c8; }
button.secondary { background: #eef2fa; color: #30425f; }
button.secondary:hover { background: #e0e8f7; }
.shell { max-width: 1280px; margin: 0 auto; padding: 40px 24px; }
.login-card { width: min(460px, 100%); margin: 8vh auto; background: #fff; border: 1px solid #dfe5f1; border-radius: 16px; padding: 34px; box-shadow: 0 18px 55px #1d376018; }
.eyebrow { color: #466fcd; font-size: 12px; font-weight: 750; letter-spacing: .12em; margin: 0 0 8px; }
h1 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
p { color: #596981; line-height: 1.6; }
form, .form-grid { display: grid; gap: 16px; margin-top: 24px; }
label { color: #374864; display: grid; font-size: 14px; font-weight: 650; gap: 6px; }
input, select, textarea { width: 100%; border: 1px solid #cbd5e5; border-radius: 8px; color: #172033; padding: 10px 11px; }
textarea { min-height: 112px; resize: vertical; }
.error { color: #b3261e; font-size: 14px; margin: 0; min-height: 22px; }
.topbar { align-items: center; display: flex; justify-content: space-between; margin-bottom: 20px; }
.workspace { background: #fff; border: 1px solid #dfe5f1; border-radius: 14px; display: grid; grid-template-columns: 360px minmax(0,1fr); min-height: 680px; overflow: hidden; }
.ticket-list-panel { border-right: 1px solid #e5ebf4; padding: 16px; }
.list-controls { align-items: end; display: grid; gap: 10px; grid-template-columns: 1fr auto; }
.ticket-list { display: grid; gap: 8px; margin-top: 16px; }
.ticket-item { background: transparent; color: #172033; display: block; padding: 12px; text-align: left; width: 100%; }
.ticket-item:hover, .ticket-item.active { background: #edf3ff; }
.ticket-item .subject { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-item .meta { color: #718199; display: flex; font-size: 12px; justify-content: space-between; margin-top: 7px; }
.pill { background: #e9eef8; border-radius: 999px; color: #385070; display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; }
.pill.new { background: #e6f0ff; color: #1d5fbd; }.pill.in_progress { background: #fff1d7; color: #935f09; }.pill.resolved, .pill.closed { background: #e7f6ea; color: #2d7a44; }
.ticket-detail { padding: 28px; }.empty-state { color: #718199; display: grid; min-height: 440px; place-items: center; }
.detail-header { align-items: start; display: flex; gap: 10px; justify-content: space-between; }
.detail-header h2 { font-size: 22px; margin: 0; overflow-wrap: anywhere; }.metadata { color: #60708a; font-size: 14px; margin: 14px 0; }
.content-block, .timeline, .update-form { border-top: 1px solid #e5ebf4; margin-top: 18px; padding-top: 18px; }.content-block { white-space: pre-wrap; }
.attachment { display: inline-block; margin-top: 12px; }.timeline { display: grid; gap: 12px; }.timeline-item { border-left: 3px solid #cddcff; padding-left: 12px; }.timeline-item p { margin: 4px 0; }
.notification-fields { border: 1px solid #dfe5f1; border-radius: 10px; display: grid; gap: 10px; margin-top: 6px; padding: 13px; }.checkbox { align-items: center; display: flex; gap: 8px; }.checkbox input { width: auto; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 4px; }.no-tickets { color: #718199; font-size: 14px; padding: 18px 6px; }
@media (max-width: 820px) { .shell { padding: 20px 12px; }.workspace { display: block; }.ticket-list-panel { border-bottom: 1px solid #e5ebf4; border-right: 0; }.ticket-detail { padding: 20px; }.topbar { align-items: flex-start; }.ticket-list { max-height: 260px; overflow: auto; } }
