* { box-sizing: border-box; }
body { font-family: -apple-system, Segoe UI, Roboto, sans-serif; margin: 0; background: #f5f6f8; color: #1a1a1a; }
.nav { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1.5rem; background: #1f2937; color: white; }
.nav a { color: white; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav .brand { font-weight: bold; font-size: 1.1rem; }
.nav .spacer { flex: 1; }
.nav .sep { opacity: 0.5; }
.link-button { background: none; border: none; color: white; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.container { max-width: 960px; margin: 2rem auto; padding: 0 1rem; }
.form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 480px; }
.form label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; }
.form input, .form select, .form textarea { padding: 0.5rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 4px; }
.form button { padding: 0.6rem; background: #2563eb; color: white; border: none; border-radius: 4px; cursor: pointer; align-self: flex-start; }
.inline-form { display: flex; gap: 0.5rem; align-items: center; margin: 1rem 0; }
.error { background: #fee2e2; color: #991b1b; padding: 0.75rem; border-radius: 4px; margin-bottom: 1rem; }
.flash { background: #dcfce7; color: #166534; padding: 0.75rem; border-radius: 4px; margin-bottom: 1rem; }
.table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.table th, .table td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #e5e7eb; }
.badge { padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.75rem; }
.status-open { background: #dbeafe; color: #1e40af; }
.status-in_progress { background: #fef9c3; color: #854d0e; }
.status-resolved { background: #dcfce7; color: #166534; }
.status-closed { background: #e5e7eb; color: #374151; }
.button { display: inline-block; margin-bottom: 1rem; padding: 0.5rem 1rem; background: #2563eb; color: white; text-decoration: none; border-radius: 4px; }
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: end; margin-bottom: 1rem; }
.filters label { display: flex; flex-direction: column; font-size: 0.8rem; }
.detail-grid { display: grid; grid-template-columns: 150px 1fr; gap: 0.4rem 1rem; }
.detail-grid dt { font-weight: bold; color: #555; }
.comments { list-style: none; padding: 0; }
.comments li { padding: 0.75rem; border-bottom: 1px solid #e5e7eb; }
.comments li.internal { background: #fffbeb; }
.comments .tag { font-size: 0.7rem; background: #f59e0b; color: white; padding: 0.1rem 0.4rem; border-radius: 4px; margin-left: 0.5rem; }
.comments time { font-size: 0.75rem; color: #888; }
.pagination { display: flex; gap: 0.5rem; }
.pagination a { padding: 0.3rem 0.6rem; border: 1px solid #ccc; border-radius: 4px; text-decoration: none; color: #333; }
.pagination a.current { background: #2563eb; color: white; border-color: #2563eb; }
