* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --hd-bg: #f5f6f8; --hd-white: #fff; --hd-primary: #4f46e5; --hd-primary-dark: #3730a3; --hd-text: #1e293b; --hd-text2: #64748b; --hd-muted: #94a3b8; --hd-border: #e2e8f0; --hd-green: #22c55e; --hd-red: #ef4444; --hd-yellow: #eab308; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--hd-bg); color: var(--hd-text); min-height: 100vh; line-height: 1.5; }
.hd-nav { display: flex; justify-content: space-between; align-items: center; padding: 0 2rem; height: 52px; background: var(--hd-white); border-bottom: 1px solid var(--hd-border); }
.hd-brand { font-size: 1.1rem; font-weight: 700; color: var(--hd-primary); }
.hd-nav-r { display: flex; align-items: center; gap: 1rem; }
.hd-link { color: var(--hd-text2); text-decoration: none; font-size: 0.85rem; font-weight: 500; }
.hd-link:hover, .hd-link.active { color: var(--hd-primary); }
.hd-user { color: var(--hd-muted); font-size: 0.85rem; }
.hd-btn { display: inline-block; padding: 0.4rem 1rem; background: var(--hd-primary); color: white; border: none; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit; }
.hd-btn:hover { background: var(--hd-primary-dark); }
.hd-btn.outline { background: none; color: var(--hd-text2); border: 1px solid var(--hd-border); }
.hd-btn.lg { padding: 0.6rem 2rem; font-size: 1rem; }
.hd-btn.sm { padding: 0.25rem 0.6rem; font-size: 0.8rem; }
.hd-btn.block { width: 100%; text-align: center; }
.hd-hero { text-align: center; padding: 6rem 2rem; max-width: 500px; margin: 0 auto; }
.hd-hero h1 { font-size: 2rem; margin-bottom: 0.8rem; }
.hd-hero p { color: var(--hd-text2); margin-bottom: 2rem; }
.hd-login-bg { display: flex; min-height: 100vh; background: var(--hd-bg); }
.hd-login-center { display: flex; justify-content: center; align-items: center; width: 100%; padding: 2rem; }
.hd-login-card { width: 100%; max-width: 380px; background: var(--hd-white); border: 1px solid var(--hd-border); border-radius: 10px; padding: 2.5rem; text-align: center; }
.hd-login-card h1 { font-size: 1.3rem; color: var(--hd-primary); margin-bottom: 0.3rem; }
.hd-login-card > p { color: var(--hd-text2); font-size: 0.9rem; margin-bottom: 1.5rem; }
.hd-form { display: flex; flex-direction: column; gap: 0.6rem; }
.hd-form input { padding: 0.5rem 0.8rem; border: 1px solid var(--hd-border); border-radius: 6px; font-size: 0.9rem; font-family: inherit; }
.hd-form input:focus { outline: none; border-color: var(--hd-primary); }
.hd-form label { font-size: 0.85rem; color: var(--hd-text2); text-align: left; margin-top: 0.3rem; }
.hd-alert { background: #fef2f2; border: 1px solid #fecaca; color: var(--hd-red); padding: 0.5rem; border-radius: 6px; font-size: 0.85rem; margin-bottom: 0.5rem; }
.hd-demo { margin-top: 1rem; font-size: 0.8rem; color: var(--hd-muted); }
.hd-demo code { background: var(--hd-bg); padding: 0.1rem 0.3rem; border-radius: 3px; }
.hd-content { max-width: 800px; margin: 0 auto; padding: 2rem; }
.hd-content h1 { font-size: 1.4rem; margin-bottom: 1rem; }
.hd-content h2 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
.hd-table { width: 100%; border-collapse: collapse; background: var(--hd-white); border: 1px solid var(--hd-border); border-radius: 8px; overflow: hidden; }
.hd-table th { padding: 0.5rem 1rem; text-align: left; font-size: 0.75rem; text-transform: uppercase; color: var(--hd-muted); background: var(--hd-bg); }
.hd-table td { padding: 0.5rem 1rem; font-size: 0.9rem; border-top: 1px solid var(--hd-border); }
.hd-badge { padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.hd-badge.open { background: #dbeafe; color: #2563eb; }
.hd-badge.resolved { background: #dcfce7; color: #16a34a; }
.hd-card { background: var(--hd-white); border: 1px solid var(--hd-border); border-radius: 8px; padding: 1.5rem; margin-bottom: 1rem; }
.hd-field-row { display: flex; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid var(--hd-border); font-size: 0.9rem; }
.hd-field-row:last-child { border-bottom: none; }
.hd-field-row span { color: var(--hd-text2); min-width: 100px; }
.hd-result { margin-top: 0.5rem; font-size: 0.85rem; color: var(--hd-text2); }
.hd-hint { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 1rem; font-size: 0.9rem; color: #92400e; margin-top: 1rem; }
.hd-hint code { background: rgba(0,0,0,0.05); padding: 0.1rem 0.3rem; border-radius: 3px; }
.hd-flag { background: #f0fdf4; border: 2px solid var(--hd-green); border-radius: 8px; padding: 1rem; font-family: monospace; font-size: 1.1rem; color: #166534; text-align: center; margin-bottom: 1.5rem; }
.hd-error { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; text-align: center; }
.hd-error h1 { font-size: 5rem; color: var(--hd-primary); }
.hd-error p { color: var(--hd-text2); margin-bottom: 2rem; }
.hd-footer { text-align: center; padding: 2rem; color: var(--hd-muted); font-size: 0.8rem; }
