
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: linear-gradient(135deg, #b71c1c 0%, #c62828 100%); min-height: 100vh; padding: 15px; }
.container { max-width: 700px; 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, #b71c1c, #c62828); color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.header h2 { font-size: 18px; }
.btn-back { background: rgba(255,255,255,0.2); color: white; border: 2px solid white; padding: 7px 13px; border-radius: 6px; font-weight: 600; font-size: 13px; text-decoration: none; }
.content { padding: 20px; }

.warning-box { background: #fdecea; border: 2px solid #e53935; border-radius: 8px; padding: 14px 16px; margin-bottom: 20px; }
.warning-box strong { color: #c62828; font-size: 15px; display: block; margin-bottom: 6px; }
.warning-box p { font-size: 13px; color: #7f1a1a; line-height: 1.5; }

.info-box { background: #e3f2fd; border-left: 4px solid #1565c0; border-radius: 6px; padding: 12px 14px; margin-bottom: 20px; font-size: 13px; color: #0d47a1; }

.collection-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.collection-card { border: 2px solid #e0e0e0; border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.collection-card.danger { border-color: #ef9a9a; background: #fff8f8; }
.collection-card.safe { border-color: #a5d6a7; background: #f9fff9; }

.col-check { flex-shrink: 0; }
.col-check input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: #c62828; }

.col-info { flex: 1; }
.col-name { font-size: 14px; font-weight: 700; color: #1a1a1a; }
.col-desc { font-size: 12px; color: #666; margin-top: 2px; }

.col-count { font-size: 18px; font-weight: 800; color: #c62828; min-width: 50px; text-align: right; }
.col-count span { font-size: 11px; font-weight: 400; color: #aaa; display: block; }

.section-title { font-size: 13px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid #f0f0f0; }

.action-row { display: flex; flex-direction: column; gap: 10px; }

.btn-reset { width: 100%; padding: 14px; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-reset-selected { background: linear-gradient(135deg, #c62828, #e53935); color: white; }
.btn-reset-selected:hover { opacity: 0.9; }
.btn-reset-selected:disabled { background: #bbb; cursor: default; opacity: 1; }

.btn-reset-all { background: #1a1a1a; color: white; }
.btn-reset-all:hover { background: #333; }
.btn-reset-all:disabled { background: #bbb; cursor: default; }

.btn-cancel { background: #f5f5f5; color: #555; border: 2px solid #ddd; }
.btn-cancel:hover { background: #eee; }

.log-box { background: #1a1a1a; color: #4caf50; border-radius: 8px; padding: 14px; margin-top: 16px; font-family: monospace; font-size: 12px; min-height: 80px; max-height: 200px; overflow-y: auto; display: none; }
.log-box.show { display: block; }
.log-line { margin-bottom: 4px; }
.log-line.err { color: #ef5350; }
.log-line.ok { color: #66bb6a; }
.log-line.info { color: #42a5f5; }

.confirm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
.confirm-overlay.show { display: flex; }
.confirm-box { background: white; border-radius: 12px; padding: 24px; max-width: 420px; width: 100%; text-align: center; }
.confirm-box h3 { color: #c62828; font-size: 18px; margin-bottom: 10px; }
.confirm-box p { font-size: 13px; color: #555; margin-bottom: 20px; line-height: 1.5; }
.confirm-input { width: 100%; padding: 10px; border: 2px solid #e53935; border-radius: 7px; font-size: 14px; text-align: center; outline: none; margin-bottom: 16px; font-family: monospace; letter-spacing: 2px; }
.confirm-btns { display: flex; gap: 10px; }
.confirm-btns button { flex: 1; padding: 10px; border-radius: 7px; font-weight: 700; font-size: 13px; cursor: pointer; border: none; }
.btn-confirm-ok { background: #c62828; color: white; }
.btn-confirm-ok:disabled { background: #bbb; cursor: default; }
.btn-confirm-cancel { background: #f5f5f5; color: #555; border: 2px solid #ddd; }

.toast { position: fixed; top: 20px; right: 20px; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 13px; z-index: 9999; display: none; box-shadow: 0 4px 15px rgba(0,0,0,0.3); color: white; }
.toast.success { background: #2e7d32; }
.toast.error { background: #c62828; }
    .version { font-size: 10px; opacity: 0.5; text-align: right; padding: 4px 20px 8px; }

