:root { --bg: #f6f7fb; --card: #ffffff; --muted: #6b7280; --text: #111827; --primary: #2563eb; --green: #16a34a; --orange: #d97706; --red: #dc2626; --border:#e5e7eb; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); }
.container { max-width: 1200px; margin: 32px auto; padding: 0 16px; }
.navbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(255,255,255,0.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); animation: fadeIn 500ms ease-in; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
.navbar-nav a { margin-right: 12px; color: var(--muted); text-decoration: none; transition: transform 150ms ease; }
.navbar-nav a:hover { color: var(--text); }
.navbar-nav a:active { transform: scale(0.98); }
.navbar-right { display: flex; align-items: center; gap: 12px; }
.user-badge { color: var(--muted); font-size: 14px; }
.btn { display: inline-block; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #ffffff; color: var(--text); text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: transform 120ms ease, box-shadow 200ms ease; }
.btn:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: white; }
.btn.small { padding: 4px 8px; font-size: 12px; }
.auth-card { max-width: 360px; margin: 64px auto; background: var(--card); padding: 24px; border: 1px solid var(--border); border-radius: 12px; animation: zoomIn 240ms ease; }
label { display: block; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
input, textarea, select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: #ffffff; color: var(--text); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid #1f2937; vertical-align: top; }
.row-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 12px; animation: fadeIn 240ms ease; }
.flex { display: flex; gap: 12px; }
.space-between { justify-content: space-between; }
.muted { color: var(--muted); }
.pill { padding: 6px 10px; border-radius: 999px; font-size: 12px; display: inline-block; }
.pill.green { background: rgba(22,163,74,0.08); color: #166534; border: 1px solid rgba(22,163,74,0.2); }
.pill.orange { background: rgba(217,119,6,0.08); color: #92400e; border: 1px solid rgba(217,119,6,0.2); }
.pill.red { background: rgba(220,38,38,0.08); color: #991b1b; border: 1px solid rgba(220,38,38,0.2); }
.stage { padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: #f9fafb; }
.stage h4 { margin: 0 0 8px 0; }
.stage a { color: var(--text); text-decoration: none; }
.stage .comment-form { margin-top: 8px; }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.search { flex: 1; }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; }
.modal.open { display: flex; }
.modal-card { width: 520px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; animation: zoomIn 180ms ease; }
.flash-container { margin-bottom: 12px; }
.flash { padding: 10px 12px; border-radius: 8px; margin-bottom: 8px; }
.flash.error { background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.25); }
.flash.success { background: rgba(22,163,74,0.08); border: 1px solid rgba(22,163,74,0.25); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

