:root{--fc-primary:#1F5FD6;--fc-primary-700:#1647A6;--fc-primary-50:#EEF4FF;--fc-ink:#0F172A;--fc-muted:#64748B;--fc-surface:#FFFFFF;--fc-border:#E2E8F0;--fc-success:#047857;--fc-success-50:#ECFDF5;--fc-success-border:#A7F3D0;--fc-warn:#B45309;--fc-warn-50:#FFFBEB;--fc-radius:12px;--fc-radius-sm:8px;--fc-shadow-card:0 0 0 1px var(--fc-border), 0 4px 12px rgba(15, 23, 42, 0.05);--fc-font-mono:ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace}.fc-calc-wrapper{margin:1rem 0 1.5rem;width:100%}.fc-calc-card{background:var(--fc-surface);border:1px solid var(--fc-border);border-radius:var(--fc-radius);box-shadow:0 4px 16px -2px rgb(15 23 42 / .06),0 2px 4px -1px rgb(15 23 42 / .04);padding:1.25rem;min-height:420px;box-sizing:border-box;position:relative;transition:box-shadow 0.2s ease}@media (min-width:640px){.fc-calc-card{padding:1.75rem 2rem}}.fc-calc-header{margin-bottom:1.25rem;border-bottom:1px solid var(--fc-border);padding-bottom:1rem;text-align:left}.fc-calc-badge{display:inline-flex;align-items:center;gap:.5rem;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--fc-primary);background:var(--fc-primary-50);border:1px solid rgb(31 95 214 / .18);padding:.25rem .65rem;border-radius:9999px;margin-bottom:.5rem}.fc-live-dot{width:7px;height:7px;border-radius:50%;background:#10B981;display:inline-block;box-shadow:0 0 0 2px rgb(16 185 129 / .25)}.fc-calc-subtitle{font-size:.9375rem;color:var(--fc-muted);line-height:1.5;margin:0}.fc-math-keypad{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin:.5rem 0 1rem;padding:.5rem .75rem;background:#F8FAFC;border:1px solid var(--fc-border);border-radius:var(--fc-radius-sm)}.fc-keypad-label{font-size:.75rem;font-weight:700;color:var(--fc-muted);text-transform:uppercase;letter-spacing:.04em;margin-right:.25rem}.fc-keypad-keys{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}.fc-key-btn{background:var(--fc-surface);border:1px solid #CBD5E1;border-radius:6px;padding:.25rem .55rem;font-size:.875rem;font-family:var(--fc-font-mono);font-weight:600;color:var(--fc-ink);cursor:pointer;min-height:32px;min-width:32px;line-height:1;transition:all 0.15s ease;user-select:none}.fc-key-btn:hover{background:var(--fc-primary-50);border-color:var(--fc-primary);color:var(--fc-primary);transform:translateY(-1px)}.fc-method-selector{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:1.25rem;background:#F1F5F9;padding:4px;border-radius:var(--fc-radius-sm)}.fc-method-btn{flex:1 1 auto;min-width:120px;background:#fff0;border:none;border-radius:6px;padding:8px 12px;font-size:.8125rem;font-weight:600;color:var(--fc-muted);cursor:pointer;transition:all 0.15s ease;text-align:center}.fc-method-btn:hover{color:var(--fc-ink)}.fc-method-btn.is-active{background:#FFF;color:var(--fc-primary);box-shadow:0 1px 3px rgb(0 0 0 / .08)}.fc-error-box{display:none;background:#FEF2F2;border:1px solid #FECACA;color:#B91C1C;padding:.75rem 1rem;border-radius:var(--fc-radius-sm);font-size:.875rem;font-weight:500;margin-bottom:1rem;line-height:1.5}.fc-form-group{margin-bottom:1.25rem}.fc-label{display:block!important;font-size:.9375rem;font-weight:600;color:var(--fc-ink);margin-bottom:.5rem;line-height:1.45}.fc-label-hint{font-weight:400;font-size:.8125rem;color:var(--fc-muted);display:inline;margin-left:.35rem}@media (max-width:640px){.fc-label{font-size:.875rem;line-height:1.4}.fc-label-hint{display:block;margin-left:0;margin-top:3px;font-size:.775rem;line-height:1.35;color:var(--fc-muted)}}.fc-input-wrapper{position:relative;display:flex;align-items:center;width:100%}.fc-input{width:100%;padding:.75rem 1rem;font-size:1.0625rem;font-family:var(--fc-font-mono);color:var(--fc-ink);background:#FFF;border:1.5px solid #CBD5E1;border-radius:var(--fc-radius-sm);transition:border-color 0.15s ease,box-shadow 0.15s ease;box-sizing:border-box}.fc-input:focus{outline:none;border-color:var(--fc-primary);box-shadow:0 0 0 3px rgb(31 95 214 / .15)}.fc-input-clear-btn{position:absolute;right:10px;background:none;border:none;color:var(--fc-muted);font-size:1.25rem;cursor:pointer;padding:4px;line-height:1;display:none}.fc-input-wrapper.has-value .fc-input-clear-btn{display:block}.fc-input-wrapper.has-value .fc-input{padding-right:2.5rem}.fc-input-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.fc-btn-row{display:flex;gap:10px;margin-bottom:1.25rem}.fc-btn-primary{flex:2;background:var(--fc-primary);color:#FFF;border:none;border-radius:var(--fc-radius-sm);padding:.875rem 1.5rem;font-size:1rem;font-weight:700;cursor:pointer;box-shadow:0 2px 4px rgb(31 95 214 / .2);transition:background 0.15s ease,transform 0.15s ease;min-height:48px}.fc-btn-primary:hover{background:var(--fc-primary-700);transform:translateY(-1px)}.fc-btn-secondary{flex:1;background:#F1F5F9;color:var(--fc-ink);border:1px solid var(--fc-border);border-radius:var(--fc-radius-sm);padding:.875rem 1rem;font-size:.9375rem;font-weight:600;cursor:pointer;transition:background 0.15s ease;min-height:48px}.fc-btn-secondary:hover{background:#E2E8F0}.fc-example-chips-wrap{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:1.5rem;padding:.5rem 0}.fc-example-chips-label{font-size:.8125rem;font-weight:600;color:var(--fc-muted)}.fc-example-chips{display:flex;flex-wrap:wrap;gap:8px}.fc-chip{background:#F8FAFC;border:1px solid #CBD5E1;border-radius:9999px;padding:.4rem .85rem;font-size:.875rem;font-weight:600;color:#334155;cursor:pointer;min-height:36px;display:inline-flex;align-items:center;transition:all 0.15s ease}.fc-chip:hover{background:var(--fc-primary-50);border-color:var(--fc-primary);color:var(--fc-primary);transform:translateY(-1px)}.fc-results-container{margin-top:1.5rem}.fc-results-card{background:#F8FAFC;border:1px solid var(--fc-border);border-radius:var(--fc-radius-sm);padding:1.25rem}.fc-result-meta{display:flex;gap:8px;margin-bottom:.85rem}.fc-meta-pill{font-size:.75rem;font-weight:700;padding:.2rem .55rem;border-radius:9999px;text-transform:uppercase;letter-spacing:.03em}.fc-meta-pill-speed{background:#E0E7FF;color:#3730A3}.fc-meta-pill-prime{background:#DCFCE7;color:#166534}.fc-final-answer-box{display:flex;justify-content:space-between;align-items:center;background:#FFF;border:1.5px solid var(--fc-primary);border-radius:var(--fc-radius-sm);padding:1rem 1.25rem;margin-bottom:1rem;box-shadow:0 2px 8px rgb(31 95 214 / .08)}.fc-final-answer-label{font-size:.8125rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--fc-muted);margin-bottom:.25rem}.fc-final-answer{font-size:clamp(1.2rem, 3vw, 1.5rem);font-weight:800;color:var(--fc-ink);font-family:var(--fc-font-mono);word-break:break-word}.fc-toolbar{display:flex;gap:8px;align-items:center;flex-shrink:0}.fc-tool-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:#F1F5F9;border:1px solid var(--fc-border);border-radius:6px;padding:6px 12px;font-size:.8125rem;font-weight:600;color:var(--fc-ink);cursor:pointer;transition:all 0.15s ease;white-space:nowrap;user-select:none}.fc-tool-btn:hover{background:#E2E8F0;border-color:#CBD5E1;color:var(--fc-primary)}.fc-tool-btn svg{width:14px;height:14px;flex-shrink:0}@media (max-width:768px){.fc-calc-card{padding:1.25rem 1rem!important;border-radius:14px!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important}.fc-results-container{width:100%!important;max-width:100%!important;box-sizing:border-box!important}.fc-results-card{padding:1rem 0.875rem!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;border-radius:12px!important}.fc-result-meta{flex-wrap:wrap!important;gap:6px!important}.fc-final-answer-box{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;padding:1rem!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important}.fc-final-answer-box>div:first-child{width:100%!important;min-width:0!important;box-sizing:border-box!important}.fc-final-answer-label{font-size:0.775rem!important;font-weight:700!important;letter-spacing:0.05em!important;text-transform:uppercase!important;margin-bottom:4px!important;color:var(--fc-muted)!important}.fc-final-answer{font-size:1.25rem!important;line-height:1.35!important;word-break:break-word!important;overflow-wrap:break-word!important}.fc-toolbar{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:4px 0 0!important;padding:12px 0 0!important;border-top:1px dashed var(--fc-border)!important;box-sizing:border-box!important}.fc-tool-btn,.fc-btn-copy,.fc-btn-share{width:100%!important;margin:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;padding:10px 12px!important;min-height:44px!important;line-height:1.2!important;font-size:0.875rem!important;font-weight:600!important;border-radius:8px!important;background:#F1F5F9!important;border:1px solid var(--fc-border)!important;color:var(--fc-ink)!important;box-sizing:border-box!important;cursor:pointer!important;user-select:none!important}.fc-tool-btn:active,.fc-btn-copy:active,.fc-btn-share:active{background:#E2E8F0!important;transform:scale(.98)!important}.fc-tool-btn svg{width:16px!important;height:16px!important;flex-shrink:0!important}.fc-steps-summary{padding:.75rem 1rem!important}.fc-steps-body{padding:0.875rem!important}.fc-feedback-strip{flex-wrap:wrap!important}.fc-toast{left:20px!important;right:20px!important;bottom:20px!important;text-align:center!important}}.fc-verify-box{display:flex;align-items:flex-start;gap:.5rem;background:#F0FDF4;border:1px solid #BBF7D0;border-radius:var(--fc-radius-sm);padding:.65rem .85rem;margin-top:1rem;font-size:.875rem;color:#166534;line-height:1.5}.fc-verify-icon{font-weight:700;color:#15803D;flex-shrink:0}.fc-verify-text strong{color:#14532D}.fc-feedback-strip{display:flex;align-items:center;gap:.5rem;font-size:.8125rem;color:var(--fc-muted);margin-top:1rem;padding-top:.75rem;border-top:1px dashed var(--fc-border)}.fc-feedback-btn{color:var(--fc-primary);text-decoration:none;font-weight:600}.fc-feedback-btn:hover{text-decoration:underline}.fc-feedback-sep{color:#CBD5E1}.fc-steps-accordion{border:1px solid var(--fc-border);border-radius:var(--fc-radius-sm);background:#FFF;margin-top:1rem;overflow:hidden}.fc-steps-summary{display:flex;justify-content:space-between;align-items:center;padding:.875rem 1.25rem;font-weight:700;font-size:.9375rem;color:var(--fc-ink);cursor:pointer;background:#F8FAFC;user-select:none;border-bottom:1px solid var(--fc-border)}.fc-steps-header{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem 0}.fc-steps-heading{font-size:.875rem;font-weight:700;color:var(--fc-ink);text-transform:uppercase;letter-spacing:.04em}.fc-steps-toggle-all{background:none;border:none;color:var(--fc-primary);font-size:.8125rem;font-weight:600;cursor:pointer;padding:.2rem .4rem}.fc-steps-toggle-all:hover{text-decoration:underline}.fc-steps-body{padding:1rem 1.25rem;display:flex;flex-direction:column;gap:12px}.fc-step-item{background:#F8FAFC;border-left:3px solid var(--fc-primary);padding:.75rem 1rem;border-radius:0 6px 6px 0}.fc-step-title{font-weight:700;font-size:.875rem;color:var(--fc-ink);margin-bottom:.35rem}.fc-step-content{font-size:.9375rem;color:#334155;line-height:1.6;font-family:var(--fc-font-mono);word-break:break-word}.fc-factor-tree-box{background:#FFF;border:1px solid var(--fc-border);border-radius:var(--fc-radius-sm);padding:1rem;text-align:center;overflow-x:auto;margin:.5rem 0}.fc-factor-tree-box svg{max-width:100%;height:auto}.fc-btn-download-svg{display:inline-flex;align-items:center;gap:5px;margin-top:8px;background:#F1F5F9;border:1px solid var(--fc-border);border-radius:6px;padding:6px 12px;font-size:.8125rem;font-weight:600;cursor:pointer}.fc-toast{position:fixed;bottom:24px;right:24px;background:#0F172A;color:#FFF;padding:10px 18px;border-radius:8px;font-size:.875rem;font-weight:600;box-shadow:0 8px 24px rgb(0 0 0 / .2);opacity:0;transform:translateY(12px);transition:opacity 0.2s ease,transform 0.2s ease;pointer-events:none;z-index:99999}.fc-toast.is-visible{opacity:1;transform:translateY(0)}