
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; padding: 15px; }
.container { max-width: 800px; margin: 5px auto; background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; }
.header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.header h2 { font-size: 18px; }
.btn-back { background: rgba(255,255,255,0.2); color: white; border: 2px solid white; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: 13px; text-decoration: none; }
.content { padding: 15px 20px; }
.form-group { margin-bottom: 12px; }
label { display: block; margin-bottom: 4px; color: #333; font-weight: 500; font-size: 12px; }
input, select, textarea { width: 100%; padding: 8px 10px; border: 2px solid #e0e0e0; border-radius: 6px; font-size: 13px; font-family: inherit; }
textarea { resize: vertical; min-height: 60px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.btn-primary { width: 100%; padding: 12px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 10px; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.info-box { background: #e7f3ff; padding: 10px; border-radius: 6px; margin-bottom: 12px; font-size: 12px; color: #0066cc; }
.section-title { font-size: 13px; font-weight: 700; color: #667eea; margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 2px solid #667eea; text-transform: uppercase; letter-spacing: 0.5px; }
.guardrail-box { background: #f8f9fa; border-radius: 10px; padding: 12px; margin: 15px 0; }
.guardrail-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12px; }
.guardrail-icon { font-size: 14px; width: 20px; text-align: center; }
.guardrail-ok { color: #2e7d32; }
.guardrail-warn { color: #e65100; }
.guardrail-block { color: #c62828; font-weight: 700; }
.guardrail-neutral { color: #999; }
.apr-display { background: #e8f5e9; padding: 8px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #2e7d32; text-align: center; margin-top: 8px; }
.apr-display.warn { background: #fff3e0; color: #e65100; }
.apr-display.block { background: #fdecea; color: #c62828; }
.badge-b2b { display: inline-block; background: #667eea; color: white; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }

/* Dark Mode */
body.dark-mode { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
body.dark-mode .container { background: #0f0f23; color: #e0e0e0; }
body.dark-mode .content { color: #e0e0e0; }
body.dark-mode input, body.dark-mode select, body.dark-mode textarea { background: #16213e; color: #e0e0e0; border-color: #333; }
body.dark-mode .section-title { color: #9fa8da; border-color: #9fa8da; }
body.dark-mode .guardrail-box { background: #1a1a2e; }
body.dark-mode .apr-display { background: #1a2e1a; }
body.dark-mode .apr-display.warn { background: #2e2a1a; }
body.dark-mode .apr-display.block { background: #2e1a1a; }

@media (max-width: 600px) {
    .row, .row3 { grid-template-columns: 1fr !important; }
    .header { flex-direction: column; text-align: center; gap: 8px; }
}

