.history-header{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1.5rem;background:#fff;border-bottom:1px solid #e5e7eb;box-shadow:0 2px 8px #0000000f;position:sticky;top:0;z-index:100;margin-bottom:2rem}.history-container{max-width:960px;margin:0 auto;padding:0 1rem 2rem}.history-header .back-btn{padding:.4rem .85rem;border:1px solid #9ca3af!important;border-radius:6px;background:#f9fafb!important;color:#4b5563!important;cursor:pointer;font-size:.85rem;font-weight:500;transition:all .2s;white-space:nowrap;min-width:-moz-fit-content;min-width:fit-content;flex-shrink:0;margin:0;box-shadow:0 1px 2px #0000000d}.history-header .back-btn:hover{border-color:#dc2626!important;color:#dc2626!important;background:#fff!important;box-shadow:0 2px 4px #dc26261a}.history-header h1{font-size:1.15rem;font-weight:700;color:#1a1a1a;margin:0}.history-header-actions{display:flex;gap:.75rem;align-items:center}.sample-btn{padding:.4rem 1rem;background:#fff;color:#374151;border:1px solid #e5e7eb;border-radius:6px;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .2s}.sample-btn:hover{background:#f9fafb;border-color:#3b82f6;color:#3b82f6}.new-btn{padding:.4rem 1rem;background:#dc2626;color:#fff;border:none;border-radius:6px;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .2s}.new-btn:hover{background:#b91c1c;transform:translateY(-1px);box-shadow:0 4px 12px #dc26264d}.intl .new-btn{background:#3b82f6}.intl .new-btn:hover{background:#2563eb;box-shadow:0 4px 12px #3b82f64d}.history-loading,.history-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;min-height:400px}.spinner{width:40px;height:40px;border:3px solid #e5e7eb;border-top-color:#dc2626;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty-icon{font-size:4rem;margin-bottom:1rem}.history-empty h3{font-size:1.25rem;font-weight:600;color:#1a1a1a;margin:0 0 .5rem}.history-empty p{font-size:.875rem;color:#6b7280;margin:0 0 1.5rem}.create-first-btn{padding:.75rem 2rem;background:#dc2626;color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s}.create-first-btn:hover{background:#b91c1c;transform:translateY(-2px);box-shadow:0 4px 12px #dc26264d}.intl .create-first-btn{background:#3b82f6}.intl .create-first-btn:hover{background:#2563eb;box-shadow:0 4px 12px #3b82f64d}.history-tabs{display:flex;gap:0;border-bottom:2px solid #f3f4f6}.history-tab{padding:.65rem 1.25rem;font-size:.9rem;font-weight:500;color:#9ca3af;background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;cursor:pointer;transition:color .15s,border-color .15s;white-space:nowrap}.history-tab:hover{color:#6b7280}.history-tab.active{color:#dc2626;font-weight:600;border-bottom-color:#dc2626}.records-list{background:#fff;border-radius:0 0 12px 12px;box-shadow:0 1px 3px #0000000f;overflow:hidden;max-height:calc(100vh - 160px);overflow-y:auto}.records-time-group{padding:.6rem 1.5rem;font-size:.75rem;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.05em;background:#fffffff2;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-bottom:1px solid #f3f4f6;position:sticky;top:0;z-index:10}.record-row{display:flex;align-items:center;padding:.85rem 1.5rem;border-bottom:1px solid #f3f4f6;cursor:pointer;transition:background .15s,color .15s;gap:1.25rem}.record-row:last-child{border-bottom:none}.record-row:hover{background:#dc26260a}.record-row:hover .record-row-title{color:#dc2626}.record-row:hover .record-row-action{color:#dc2626;text-decoration:underline}.record-row-title{flex:1;min-width:0;font-size:.95rem;font-weight:600;color:#1f2937;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:color .15s}.record-row-time{font-size:.8rem;color:#9ca3af;white-space:nowrap;flex-shrink:0}.record-row-badge{display:inline-flex;align-items:center;padding:.15rem .5rem;background:#f9fafb;color:#6b7280;border-radius:4px;font-size:.78rem;font-weight:500;white-space:nowrap;flex-shrink:0}.record-row-status{font-size:.78rem;font-weight:500;white-space:nowrap;flex-shrink:0}.record-row-status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:.35rem;vertical-align:middle}.record-row-status-dot.success{background:#16a34a}.record-row-status-dot.failed{background:#dc2626}.record-row-status-dot.processing{background:#d97706;animation:pulse-dot 1.5s infinite}@keyframes pulse-dot{0%,to{opacity:1}50%{opacity:.4}}.record-row-actions{display:flex;align-items:center;gap:1rem;flex-shrink:0}.record-row-action{font-size:.85rem;font-weight:500;color:#9ca3af;background:none;border:none;cursor:pointer;padding:0;transition:color .15s;white-space:nowrap}.record-row-action:hover{color:#dc2626}.record-row-action.delete{color:transparent}.record-row:hover .record-row-action.delete{color:#d1d5db}.record-row-action.delete:hover{color:#dc2626!important}.record-row-disabled{opacity:.55}.record-row-failed .record-row-title{color:#9ca3af;font-weight:400}.record-row-failed .record-row-time,.record-row-failed .record-row-badge{color:#d1d5db}.record-row-action.retry{color:#dc2626}.record-row-action.retry:hover{color:#b91c1c}.record-card{background:#fff;border-radius:12px;padding:0;border:1px solid #e5e7eb;box-shadow:0 1px 3px #0000000f;cursor:pointer;transition:all .2s;display:flex;flex-direction:column;overflow:hidden}.record-card:hover{transform:translateY(-2px);border-color:#6366f1;box-shadow:0 8px 24px #6366f11f}.records-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}.record-card-top{padding:1.25rem 1.25rem .75rem;display:flex;flex-direction:column;gap:.5rem}.record-badge{display:inline-flex;align-items:center;font-size:.7rem;font-weight:600;padding:.2rem .6rem;border-radius:999px;letter-spacing:.3px;white-space:nowrap;line-height:1.4;width:-moz-fit-content;width:fit-content}.badge-paid,.badge-unlocked{background:#dcfce7;color:#16a34a}.badge-trial,.badge-locked{background:#f1f5f9;color:#64748b}.record-title{font-size:1.1rem;font-weight:700;color:#1e293b;margin:0;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-card-divider{height:1px;background:#f1f5f9;margin:0 1.25rem}.record-card-mid{display:flex;align-items:center;gap:.375rem;padding:.75rem 1.25rem;flex-wrap:wrap}.record-card-mid .stat-item{padding:0;background:none;font-size:.78rem;color:#64748b;font-weight:500}.stat-dot{color:#cbd5e1;font-size:.75rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.record-date{font-size:.78rem;color:#94a3b8}.ai-tag{background:#dbeafe;color:#1d4ed8;padding:.1rem .35rem;border-radius:4px;font-size:.6rem;font-weight:700}.record-card-bottom{display:flex;align-items:center;justify-content:space-between;padding:.5rem .875rem;border-top:1px solid #f1f5f9}.record-card-right{display:flex;align-items:center;gap:.5rem;margin-left:auto}.export-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;border-radius:6px;cursor:pointer;transition:all .15s;flex-shrink:0;color:#94a3b8}.export-btn:hover{background:#eff6ff;color:#3b82f6}.delete-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;border-radius:6px;cursor:pointer;font-size:1.1rem;transition:all .15s;flex-shrink:0;color:#94a3b8}.delete-btn:hover{background:#fef2f2;color:#ef4444}.continue-hint{font-size:.78rem;color:#6366f1;opacity:0;transition:opacity .2s;white-space:nowrap;font-weight:500}.record-card:hover .continue-hint{opacity:1}.record-header{display:flex;align-items:center;gap:.5rem;width:100%}.record-card-actions{display:flex;align-items:center;gap:.375rem;flex-shrink:0}.record-stats{display:flex;gap:1rem}.stat-item{padding:.25rem .75rem;background:#f3f4f6;border-radius:4px;font-size:.75rem;color:#6b7280;font-weight:500}.record-meta{display:flex;align-items:center;gap:.5rem}.record-card-footer{display:flex;align-items:center}@media (max-width: 1024px){.records-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.history-header{flex-direction:column;gap:1rem;align-items:stretch}.history-header h1{text-align:center}.back-btn,.new-btn{width:100%;text-align:center}.records-grid{grid-template-columns:1fr}.record-row{flex-wrap:wrap;padding:.75rem 1rem;gap:.5rem}.record-row-title{flex:1 1 100%;order:1}.record-row-time{order:2}.record-row-badge{order:3}.record-row-status{order:4}.record-row-actions{order:5;margin-left:auto}}.delete-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.delete-modal{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;max-width:420px;width:90%;animation:slideUp .3s ease-out}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.delete-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem;border-bottom:1px solid #e5e7eb}.delete-modal-header h3{margin:0;font-size:1.25rem;font-weight:600;color:#1a1a1a}.delete-modal-close{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;border-radius:6px;cursor:pointer;font-size:1.5rem;color:#6b7280;transition:all .2s}.delete-modal-close:hover{background:#f3f4f6;color:#1a1a1a}.delete-modal-body{padding:2rem 1.5rem;text-align:center}.delete-modal-icon{font-size:3rem;margin-bottom:1rem}.delete-modal-message{margin:0 0 .75rem;font-size:1rem;color:#374151}.delete-modal-record-title{margin:0 0 1rem;font-size:.95rem;color:#1a1a1a;font-weight:600;background:#f3f4f6;padding:.5rem 1rem;border-radius:6px;display:inline-block;word-break:break-word}.delete-modal-warning{margin:0;font-size:.875rem;color:#dc2626}.delete-modal-footer{display:flex;gap:1rem;padding:1.5rem;border-top:1px solid #e5e7eb}.delete-modal-btn{flex:1;padding:.75rem 1.5rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;border:none}.delete-modal-btn.cancel{background:#f3f4f6;color:#374151}.delete-modal-btn.cancel:hover{background:#e5e7eb}.delete-modal-btn.confirm{background:#dc2626;color:#fff}.delete-modal-btn.confirm:hover{background:#b91c1c}
