/* Fraction Calculator with Steps */
.fc-app{--fc-bg:#26332C;--fc-panel:#2D3B33;--fc-input:#1F2A24;--fc-accent:#D4A94A;--fc-badge:#F6D64A;--fc-text:#F2F0E6;--fc-muted:#C9C7BB}
.fc-app.fc-card{background:var(--fc-bg);border:1px solid rgba(242,240,230,.14);border-radius:18px;padding:36px 40px 30px;color:var(--fc-text);font-family:'IBM Plex Mono',ui-monospace,Menlo,Consolas,monospace;box-sizing:border-box;width:100%}
.fc-app *{box-sizing:border-box}
.fc-app .fc-label{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--fc-muted);margin:0 0 14px}
.fc-app .fc-row{display:flex;align-items:center;justify-content:center;gap:36px;flex-wrap:wrap}
.fc-app .fc-col{display:flex;flex-direction:column;align-items:center}
.fc-app .fc-frac{display:flex;align-items:center;gap:16px;background:var(--fc-panel);border:1px solid rgba(242,240,230,.18);border-radius:14px;padding:16px 22px}
.fc-app .fc-wl,.fc-app .fc-stack{display:flex;flex-direction:column;align-items:center;gap:6px;margin:0}
.fc-app .fc-tag{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--fc-muted);line-height:1.2;white-space:nowrap;text-align:center}
.fc-app .fc-tag i{font-style:normal;color:#7d877f;display:block;text-align:center;font-size:10px;margin-top:2px}
.fc-app .fc-bar{width:100%;height:3px;background:var(--fc-accent);border-radius:2px;margin:2px 0}
.fc-app.fc-card input{font-family:inherit;font-size:26px;background:var(--fc-input);color:#fff;border:1px solid rgba(242,240,230,.25);border-radius:10px;text-align:center;padding:8px 6px;width:120px;height:58px;margin:0;outline:none;-moz-appearance:textfield;box-shadow:none}
.fc-app.fc-card input::-webkit-outer-spin-button,.fc-app.fc-card input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.fc-app.fc-card input.fc-whole{width:92px;height:64px}
.fc-app.fc-card input:focus{border-color:var(--fc-accent);box-shadow:0 0 0 2px rgba(212,169,74,.35)}
.fc-app.fc-card input::placeholder{color:#6f7a72;font-size:15px;letter-spacing:.04em}
.fc-app.fc-card input.fc-bad{border-color:#ff8f78;box-shadow:0 0 0 2px rgba(255,143,120,.35)}
.fc-app .fc-ops-wrap{display:grid;grid-template-columns:repeat(2,56px);gap:8px}
.fc-app .fc-op{width:56px;height:50px;border-radius:10px;border:1px solid rgba(242,240,230,.28);background:var(--fc-panel);color:var(--fc-text);font-size:24px;font-family:inherit;cursor:pointer;line-height:1;padding:0}
.fc-app .fc-op:hover{border-color:var(--fc-accent)}
.fc-app .fc-op.on{background:var(--fc-accent);border-color:var(--fc-accent);color:#1A202C;font-weight:600}
.fc-app .fc-cap{display:block;text-align:center;font-size:12px;color:var(--fc-text);margin-top:10px;letter-spacing:.1em;text-transform:uppercase;font-weight:600}
.fc-app .fc-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin:22px 0 0;font-size:12.5px;color:var(--fc-muted)}
.fc-app .fc-legend b{color:var(--fc-badge);font-weight:600}
.fc-app .fc-actions{display:flex;gap:12px;margin-top:24px}
.fc-app .fc-btn{flex:1;font-family:inherit;font-size:17px;font-weight:600;border-radius:10px;padding:16px 22px;cursor:pointer;border:1px solid var(--fc-accent);background:var(--fc-accent);color:#1A202C}
.fc-app .fc-btn:hover{filter:brightness(1.07)}
.fc-app .fc-btn.fc-ghost{flex:0 0 160px;background:transparent;color:var(--fc-text);border-color:rgba(242,240,230,.28)}
.fc-app .fc-err{color:#ffb4a3;font-size:14px;margin-top:12px}
.fc-app .fc-err:empty{display:none}
.fc-app .fc-out{margin-top:24px;border-top:1px dashed rgba(242,240,230,.2);padding-top:22px;display:none}
.fc-app .fc-out.fc-show{display:block}
.fc-app .fc-answer{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px}
.fc-app .fc-big{font-size:38px;color:#fff;line-height:1.2}
.fc-app .fc-f{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1.1;margin:0 3px}
.fc-app .fc-f>span:first-child{border-bottom:2px solid currentColor;padding:0 4px 2px}
.fc-app .fc-f>span:last-child{padding:2px 4px 0}
.fc-app .fc-pill{font-size:13px;background:var(--fc-panel);border:1px solid rgba(242,240,230,.18);border-radius:999px;padding:6px 12px;color:var(--fc-muted);display:inline-flex;align-items:center;gap:6px}
.fc-app .fc-pill b{color:var(--fc-badge);font-weight:500}
.fc-app.fc-card .fc-steps{list-style:none;margin:20px 0 0;padding:0;counter-reset:s}
.fc-app.fc-card .fc-steps li{counter-increment:s;position:relative;padding:12px 16px 12px 54px;background:var(--fc-panel);border-radius:10px;margin:0 0 8px;font-size:15px;line-height:1.7;color:#E9E7DC;overflow-x:auto}
.fc-app .fc-steps li:before{content:counter(s);position:absolute;left:14px;top:12px;width:26px;height:26px;border-radius:50%;background:var(--fc-badge);color:#1A202C;font-weight:600;font-size:13px;display:flex;align-items:center;justify-content:center}
.fc-app .fc-steps li strong{color:#fff;display:block;font-weight:600}
.fc-app .fc-steps .fc-f{font-size:15px}
.fc-app .fc-hint{font-size:12px;color:#9aa39c;margin:16px 0 0}
@media(max-width:900px){.fc-app.fc-card{padding:28px 24px 24px}.fc-app .fc-row{gap:22px}.fc-app.fc-card input{width:96px;font-size:22px;height:52px}.fc-app.fc-card input.fc-whole{width:76px;height:56px}.fc-app .fc-frac{padding:14px 16px;gap:12px}}
@media(max-width:600px){.fc-app.fc-card{padding:20px 14px;border-radius:14px}.fc-app .fc-row{gap:14px;flex-direction:column}.fc-app .fc-frac{padding:12px 14px;gap:12px}.fc-app.fc-card input{width:96px;font-size:20px;height:48px}.fc-app.fc-card input.fc-whole{width:72px;height:52px}.fc-app.fc-card input::placeholder{font-size:13px}.fc-app .fc-ops-wrap{grid-template-columns:repeat(4,56px)}.fc-app .fc-op{height:46px}.fc-app .fc-big{font-size:28px}.fc-app .fc-actions{flex-direction:column}.fc-app .fc-btn.fc-ghost{flex:1}.fc-app .fc-legend{justify-content:flex-start;font-size:12px}.fc-app.fc-card .fc-steps li{padding:12px 12px 12px 48px;font-size:14px}.fc-app .fc-steps li:before{left:12px}}
@media(max-width:360px){.fc-app.fc-card input{width:80px}.fc-app.fc-card input.fc-whole{width:62px}.fc-app .fc-ops-wrap{grid-template-columns:repeat(4,50px)}.fc-app .fc-op{width:50px}}

.fc-app .fc-out .fc-label{margin-top:0}
.fc-app .fc-pills{display:flex;gap:8px;flex-wrap:wrap}
.fc-app button{text-transform:none;letter-spacing:normal;box-shadow:none}
.fc-app .fc-title{margin:0 0 14px}
.fc-app .fc-eq{opacity:.6}

/* v1.1 - tool tabs, extra panels */
.fc-app [hidden]{display:none!important}
.fc-app .fc-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0 0 28px;padding:0 0 20px;border-bottom:1px dashed rgba(242,240,230,.2)}
.fc-app .fc-tab{font-family:inherit;font-size:15px;font-weight:700;line-height:1.25;color:var(--fc-text);background:transparent;border:1px solid rgba(242,240,230,.3);border-radius:999px;padding:11px 20px;cursor:pointer;margin:0;text-align:center;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.fc-app .fc-tab:hover{border-color:var(--fc-accent);color:#fff;background:rgba(242,240,230,.06)}
.fc-app .fc-tab.on{background:var(--fc-accent);border-color:var(--fc-accent);color:#1A202C}
.fc-app .fc-tab:focus-visible,.fc-app .fc-mode:focus-visible,.fc-app .fc-op:focus-visible,.fc-app .fc-btn:focus-visible{outline:2px solid var(--fc-badge);outline-offset:2px}
.fc-app .fc-modes{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:0 0 22px}
.fc-app .fc-mode{font-family:inherit;font-size:14px;font-weight:600;color:var(--fc-text);background:var(--fc-panel);border:1px solid rgba(242,240,230,.28);border-radius:10px;padding:10px 16px;cursor:pointer;margin:0}
.fc-app .fc-mode:hover{border-color:var(--fc-accent)}
.fc-app .fc-mode.on{background:var(--fc-accent);border-color:var(--fc-accent);color:#1A202C}
.fc-app.fc-card input.fc-text{width:300px;max-width:100%;height:64px;font-size:26px}
.fc-app .fc-frac-wide{padding:18px 26px}
.fc-app .fc-frac-wide .fc-wl{width:100%}
.fc-app .fc-out .fc-steps-label{margin-top:24px}
@media(max-width:600px){.fc-app .fc-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:20px;padding-bottom:16px}.fc-app .fc-tab{white-space:normal;font-size:13px;padding:10px 8px;border-radius:12px;min-height:46px;display:flex;align-items:center;justify-content:center}.fc-app .fc-modes{display:grid;grid-template-columns:1fr 1fr}.fc-app .fc-mode{font-size:12.5px;padding:10px 6px}.fc-app.fc-card input.fc-text{width:230px;height:54px;font-size:22px}.fc-app .fc-frac-wide{padding:14px 16px}}
@media(max-width:360px){.fc-app .fc-tab{font-size:12px}.fc-app.fc-card input.fc-text{width:200px}}
