@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,350;14..32,400;14..32,500;14..32,560;14..32,650;14..32,720&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f5f5f7;
  --bg-warm: #faf9f8;
  --surface: #ffffff;
  --surface-hover: #f8f8fa;
  --surface-active: #f0f0f3;
  --surface-raised: #ffffff;
  --border: #e4e4e9;
  --border-light: #eeeff3;
  --border-subtle: #f2f2f5;
  --text: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-tertiary: #71717a;
  --text-muted: #a0a0ab;
  --text-faint: #c4c4cc;

  --accent: #6366f1;
  --accent-hover: #5558e6;
  --accent-pressed: #4f46e5;
  --accent-bg: #eef2ff;
  --accent-text: #4338ca;
  --accent-subtle: #f5f3ff;
  --accent-muted: rgba(99, 102, 241, 0.08);

  --new-color: #3b82f6;
  --new-bg: #eff6ff;
  --open-color: #22c55e;
  --open-bg: #f0fdf4;
  --snoozed-color: #f59e0b;
  --snoozed-bg: #fffbeb;
  --done-color: #a1a1aa;
  --done-bg: #f4f4f5;

  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --success: #22c55e;
  --success-bg: #f0fdf4;

  --sidebar-w: 232px;
  --sidebar-collapsed-w: 52px;
  --list-w: 340px;
  --detail-sidebar-w: 300px;

  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'SF Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --transition-fast: 0.1s ease;
  --transition: 0.15s ease;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.006em;
}

/* ========== FOUR-PANEL LAYOUT ========== */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) var(--list-w) 1fr var(--detail-sidebar-w);
  height: 100vh;
  background: var(--bg);
}

.app.sidebar-hidden {
  grid-template-columns: var(--sidebar-collapsed-w) var(--list-w) 1fr var(--detail-sidebar-w);
}

/* ========== BUTTONS ========== */
.btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12.5px;
  font-family: var(--font);
  font-weight: 520;
  letter-spacing: -0.006em;
  transition: all var(--transition-fast);
  user-select: none;
}
.btn:hover { background: var(--surface-hover); border-color: #d0d0d8; }
.btn:active { background: var(--surface-active); transform: scale(0.98); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-ghost { background: none; border: none; color: var(--text-tertiary); }
.btn-ghost:hover { color: var(--text); background: var(--surface-hover); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.25);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3); }
.btn-primary:active { background: var(--accent-pressed); }
.btn-primary:disabled { opacity: 0.4; cursor: default; box-shadow: none; }

/* ========== LEFT SIDEBAR ========== */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.2s;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 10px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 720;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}

.brand-text {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.sidebar-collapse-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: all var(--transition-fast);
}
.sidebar-collapse-btn:hover { background: var(--surface-hover); color: var(--text); }

/* Collapsed state */
.sidebar-collapsed {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
  width: var(--sidebar-collapsed-w);
}

.sidebar-expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.sidebar-search {
  padding: 0 12px 10px;
}

.sidebar-search input {
  width: 100%;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: all var(--transition);
}
.sidebar-search input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.sidebar-search input::placeholder { color: var(--text-muted); }

.sidebar-group { padding: 6px 0; }

.sidebar-group-label {
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 10px 16px 5px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 12px 7px 16px;
  margin: 1px 0;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  font-size: 13px;
  font-family: var(--font);
  font-weight: 460;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border-radius: 0;
}

.sidebar-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.sidebar-item.active {
  background: var(--accent-subtle);
  color: var(--accent-text);
  border-left-color: var(--accent);
  font-weight: 560;
}

.sidebar-item.disabled {
  color: var(--text-faint);
  cursor: default;
  opacity: 0.8;
}
.sidebar-item.disabled:hover { background: none; color: var(--text-faint); }

.sidebar-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.75;
}

.sidebar-item.active .sidebar-icon { opacity: 1; }

.sidebar-label { flex: 1; }

.sidebar-count {
  font-size: 11px;
  font-weight: 560;
  color: var(--text-muted);
  background: var(--bg);
  padding: 1px 7px;
  border-radius: 10px;
  min-width: 22px;
  text-align: center;
}

.sidebar-item.active .sidebar-count {
  background: var(--accent-muted);
  color: var(--accent-text);
}

.sidebar-badge-soon {
  font-size: 9px;
  font-weight: 560;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  background: var(--bg);
  padding: 2px 7px;
  border-radius: 8px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 10px 0 14px;
  border-top: 1px solid var(--border-light);
}

/* Status dots */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--surface);
}
.status-dot-new { background: var(--new-color); box-shadow: 0 0 0 2px var(--surface), 0 0 4px rgba(59, 130, 246, 0.3); }
.status-dot-open { background: var(--open-color); box-shadow: 0 0 0 2px var(--surface), 0 0 4px rgba(34, 197, 94, 0.3); }
.status-dot-snoozed { background: var(--snoozed-color); box-shadow: 0 0 0 2px var(--surface), 0 0 4px rgba(245, 158, 11, 0.3); }
.status-dot-done { background: var(--done-color); }

/* ========== TICKET LIST (middle-left) ========== */
.ticket-list-panel {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--surface);
}

.list-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.list-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.01em;
}

.ticket-rows {
  flex: 1;
  overflow-y: auto;
}

.ticket-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}
.ticket-row:hover { background: var(--surface-hover); }
.ticket-row.active {
  background: var(--accent-bg);
  box-shadow: inset 3px 0 0 var(--accent);
}

.ticket-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ticket-sender {
  font-size: 13px;
  font-weight: 560;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.ticket-time {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.ticket-subject {
  font-size: 12.5px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.ticket-row-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.channel-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 650;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.channel-email { background: #dbeafe; color: #2563eb; }
.channel-gamefound { background: #dcfce7; color: #16a34a; }
.channel-website { background: #fce7f3; color: #db2777; }

.ticket-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ticket-preview {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  font-weight: 400;
}

.priority-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 650;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.priority-urgent {
  background: var(--danger-bg);
  color: var(--danger);
}
.priority-high {
  background: #fff7ed;
  color: #ea580c;
}

.ticket-assignee-chip {
  font-size: 10.5px;
  font-weight: 460;
  color: var(--text-muted);
  margin-left: auto;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  flex-shrink: 0;
  border-top: 1px solid var(--border-light);
}

/* ========== CONVERSATION PANEL (center) ========== */
.conversation-panel {
  height: 100vh;
  overflow-y: auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.conversation-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--text-muted);
  gap: 6px;
}
.conversation-empty-icon { color: var(--text-faint); }
.conversation-empty p { font-size: 13px; font-weight: 460; color: var(--text-tertiary); }
.conversation-empty-hint { font-size: 11px; font-weight: 400; color: var(--text-faint); }

.conversation-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 28px 24px;
}

.conversation-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.conversation-subject {
  font-size: 17px;
  font-weight: 650;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.conversation-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Chat-style thread */
.conversation-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
  overflow-y: auto;
  padding-right: 4px;
}

.chat-message {
  max-width: 72%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message.incoming {
  align-self: flex-start;
}

.chat-message.outgoing {
  align-self: flex-end;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message.incoming .chat-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.chat-message.outgoing .chat-bubble {
  background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.chat-meta {
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 8px;
  font-weight: 400;
}

.chat-message.incoming .chat-meta { text-align: left; }
.chat-message.outgoing .chat-meta { text-align: right; }

/* Reply area */
.reply-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: auto;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.reply-area:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted), var(--shadow-sm);
}

.reply-input {
  width: 100%;
  border: none;
  padding: 14px 16px;
  font-size: 13.5px;
  font-family: var(--font);
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  resize: none;
  min-height: 52px;
  outline: none;
}
.reply-input:focus { background: var(--surface); }
.reply-input::placeholder { color: var(--text-muted); }
.reply-input:disabled { background: var(--bg); cursor: not-allowed; }

.reply-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-warm);
}
.reply-hint { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.reply-failed-badge {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 560;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
}

/* ========== RIGHT SIDEBAR: TICKET DETAILS ========== */
.detail-sidebar {
  background: var(--surface);
  border-left: 1px solid var(--border);
  height: 100vh;
  overflow-y: auto;
  padding: 0;
}

.detail-sidebar-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  gap: 8px;
}
.detail-empty-icon { color: var(--text-faint); }

.detail-sidebar-content {
  padding: 18px 16px 28px;
}

/* Detail sidebar sections */
.ds-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.ds-section:first-child { padding-top: 0; }
.ds-section:last-child { border-bottom: none; }

.ds-section-label {
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.ds-field {
  margin-bottom: 10px;
}
.ds-field:last-child { margin-bottom: 0; }

.ds-field label {
  display: block;
  font-size: 11px;
  font-weight: 520;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.ds-field select,
.ds-field input[type="date"] {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid transparent;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: all var(--transition);
}
.ds-field select:focus,
.ds-field input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

/* Info rows */
.ds-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5px 0;
  gap: 10px;
}

.ds-info-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  flex-shrink: 0;
}

.ds-info-value {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.ds-info-mono {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

/* GameFound */
.gamefound-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.gamefound-btn {
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 460;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.gamefound-btn:hover { background: var(--surface-hover); border-color: #d0d0d8; }

/* Notes */
.note-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.note-item:last-child { border-bottom: none; }
.note-author { font-size: 11.5px; font-weight: 560; color: var(--text); }
.note-time { font-size: 10px; color: var(--text-faint); margin-left: 6px; font-weight: 400; }
.note-body { font-size: 12px; color: var(--text-secondary); margin-top: 3px; line-height: 1.55; }
.notes-empty { font-size: 12px; color: var(--text-muted); padding: 4px 0; font-weight: 400; }

.notes-input-area {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  margin-top: 10px;
}

.note-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 12px;
  font-family: var(--font);
  color: var(--text);
  resize: none;
  outline: none;
  transition: all var(--transition);
}
.note-input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.note-input::placeholder { color: var(--text-muted); }

/* Linear */
.linear-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.linear-row input {
  flex: 1;
  background: var(--bg);
  border: 1px solid transparent;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: all var(--transition);
}
.linear-row input:focus {
  border-color: var(--accent);
  background: var(--surface);
}
.linear-row input::placeholder { color: var(--text-muted); }
.linear-row a { color: var(--accent); font-size: 12px; font-weight: 520; text-decoration: none; }
.linear-row a:hover { text-decoration: underline; }

/* Forwards */
.forward-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 11px;
  margin-top: 5px;
}
.fwd-sent { color: var(--success); font-weight: 560; }
.fwd-failed { color: var(--danger); font-weight: 560; }

/* Audit log */
.audit-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.audit-arrow { font-size: 10px; color: var(--text-muted); transition: transform var(--transition-fast); }
.audit-log-panel { margin-top: 8px; max-height: 200px; overflow-y: auto; }
.audit-entry {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.5;
}
.audit-entry:last-child { border-bottom: none; }
.audit-actor { font-weight: 560; color: var(--text); }
.audit-field { font-weight: 460; }
.audit-old { color: var(--danger); text-decoration: line-through; }
.audit-new { color: var(--success); font-weight: 460; }
.audit-time { display: block; font-size: 10px; color: var(--text-faint); margin-top: 2px; }
.audit-empty { font-size: 11px; color: var(--text-muted); padding: 4px 0; }

/* Shortcut hints in detail sidebar */
.ds-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 14px 0 0;
  font-size: 10px;
  color: var(--text-faint);
  font-weight: 400;
}

/* ========== LOADING / EMPTY ========== */
.loading, .empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
}
.empty-icon { font-size: 28px; margin-bottom: 10px; opacity: 0.5; }

/* ========== SHORTCUT OVERLAY ========== */
.selected-row {
  background: var(--accent-bg) !important;
  box-shadow: inset 3px 0 0 var(--accent), 0 0 0 1px var(--accent-muted);
}

#shortcut-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 15, 25, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  animation: overlayIn 0.15s ease-out;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.shortcut-modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border);
  padding: 28px 32px;
  max-width: 500px;
  width: 90%;
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.shortcut-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.shortcut-modal-header h3 { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }

.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.shortcut-section h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 650;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 4px 0;
  font-weight: 400;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 520;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 0 var(--border);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .app { grid-template-columns: var(--sidebar-collapsed-w) var(--list-w) 1fr var(--detail-sidebar-w); }
  .sidebar { display: none; }
  .sidebar-collapsed { display: flex !important; }
}

@media (max-width: 768px) {
  .app { grid-template-columns: 1fr; }
  .sidebar, .sidebar-collapsed, .detail-sidebar { display: none; }
  .ticket-list-panel { border-right: none; }
}
