:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) {
    --graph-ink: #26362c;
    --graph-muted: #718075;
    --graph-line: #e1e8df;
    --graph-surface: #fff;
    --graph-soft: #f5f8f3;
    --graph-accent: var(--green-dark, #254c37);
    --graph-accent-2: var(--green, #367251);
    --graph-accent-hover: var(--green-hover, #2c6145);
    --graph-accent-pale: var(--green-pale, #eaf2e9);
    --graph-accent-soft: var(--green-soft, #f3f8f1);
    --graph-accent-border: var(--green-border, #b9cfb8);
    color: var(--graph-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-shell {
    margin-block: clamp(18px, 2.5vw, 34px) 38px;
}

:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(26px, 4vw, 48px);
}

:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #314238;
    font-weight: 800;
    text-decoration: none;
}

:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-brand-accent { color: var(--graph-accent-2); }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-brand-mark { display: flex; width: 22px; height: 22px; align-items: end; justify-content: center; gap: 2px; padding: 4px; border-radius: 6px; background: var(--graph-accent-2); }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-brand-mark i { width: 3px; border-radius: 2px; background: #fff; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-brand-mark i:nth-child(1) { height: 6px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-brand-mark i:nth-child(2) { height: 10px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-brand-mark i:nth-child(3) { height: 13px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-header > p { margin: 0; color: #829085; font-size: 11px; font-weight: 800; letter-spacing: .13em; }

:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-intro-section { margin: 0 0 20px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-eyebrow,
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-section-label { margin: 0 0 9px; color: var(--graph-accent-2); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-intro-section h1 { max-width: 920px; margin: 0 0 13px; color: #23382b; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-intro { max-width: 950px; margin: 0; color: #5f6e62; font-size: 15px; line-height: 1.7; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-seo-copy { max-width: 980px; margin: 8px 0 0; color: #778378; font-size: 13px; line-height: 1.65; }

:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .tool-breadcrumbs { display: block; width: 100%; margin: 8px 0 0; color: #68756b; font: inherit; font-size: .88333rem; line-height: 1.5; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .tool-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .tool-breadcrumbs ol > li { display: inline-flex; align-items: center; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .tool-breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: #9aa59b; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .tool-breadcrumbs ol a { display: inline-flex; min-height: 31px; align-items: center; padding: .28rem .78rem; border: 1px solid var(--graph-accent-border); border-radius: 999px; background: var(--graph-accent-pale); color: var(--graph-accent); font-weight: 750; text-decoration: none; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .tool-breadcrumbs ol a:hover { background: var(--graph-accent-soft); color: var(--graph-accent-hover); }

:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-button,
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-icon-button,
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-dialog-close { font: inherit; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 750; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-button--secondary { border-color: var(--graph-accent-border); background: #fff; color: var(--graph-accent); }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-button--secondary:hover { background: var(--graph-accent-soft); }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-button--primary { background: var(--graph-accent); color: #fff; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-button--primary:hover { background: var(--graph-accent-hover); }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-mode-note { color: var(--graph-muted); font-size: 11px; line-height: 1.5; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) :is(.graph-button, .graph-icon-button, .graph-series-expression, .graph-preset-select, .graph-series-color, .graph-field input, .graph-field select, .graph-dialog-close):focus-visible { outline: 3px solid rgb(var(--green-rgb, 54 114 81) / 30%); outline-offset: 2px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) button:disabled { cursor: not-allowed; opacity: .55; }

:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-card { margin-top: 18px; padding: clamp(18px, 2.6vw, 30px); border: 1px solid var(--graph-line); border-radius: 16px; background: var(--graph-surface); box-shadow: 0 16px 44px rgb(30 46 34 / 7%); }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-card-topline { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 14px; color: #879187; font-size: 9px; font-weight: 800; letter-spacing: .11em; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-card-heading,
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-subheading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-card h2 { margin: 0 0 17px; color: #25382b; font-size: 21px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-card-heading h2 { margin-bottom: 0; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-add-function-controls { display: flex; align-items: center; gap: 8px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-series-list { display: grid; gap: 10px; margin-top: 18px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-series-row { display: grid; grid-template-columns: 14px minmax(170px, 1.15fr) minmax(170px, .9fr) auto auto auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid #e5ebe3; border-radius: 10px; background: #fbfcfa; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-series-swatch { width: 12px; height: 12px; border-radius: 50%; background: var(--series-color); }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-series-field { display: grid; min-width: 0; gap: 4px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-series-field-label { color: #718075; font-size: 10px; font-weight: 700; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-series-expression { box-sizing: border-box; width: 100%; min-width: 0; min-height: 37px; padding: 8px 10px; border: 1px solid #dce4db; border-radius: 8px; background: #fff; color: #29382e; font: 600 13px/1.3 ui-monospace, Consolas, monospace; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-preset-select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 37px; padding: 7px 9px; border: 1px solid #dce4db; border-radius: 8px; background: #fff; color: #425348; font: 500 12px/1.35 Inter, "Segoe UI", Arial, sans-serif; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-add-function-controls .graph-preset-select { width: 250px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-series-color { width: 44px; height: 38px; padding: 3px; border: 1px solid #dce4db; border-radius: 8px; background: #fff; cursor: pointer; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-series-toggle { min-height: 36px; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--graph-accent); cursor: pointer; font-size: 12px; font-weight: 700; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-series-remove { min-height: 36px; padding: 6px 9px; border: 1px solid #ead8d6; border-radius: 7px; background: #fff; color: #913b36; cursor: pointer; font-size: 12px; font-weight: 700; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-series-row[hidden],
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) [hidden] { display: none !important; }

:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-advanced { margin-top: 16px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-card[data-simple="true"] [data-advanced] { display: none; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-fieldset { min-width: 0; margin: 0; padding: 16px; border: 1px solid #e2e9e0; border-radius: 11px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-fieldset legend { padding: 0 7px; color: #425348; font-size: 13px; font-weight: 750; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-range-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-field { display: grid; min-width: 0; gap: 6px; color: #58675b; font-size: 11px; font-weight: 750; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-field input,
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-field select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 41px; padding: 8px 10px; border: 1px solid #dce4db; border-radius: 8px; background: #fff; color: #29382e; font: 500 14px/1.35 Inter, "Segoe UI", Arial, sans-serif; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-hint { margin: 8px 0 0; color: #829087; font-size: 11px; line-height: 1.55; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-status { min-height: 18px; margin: 10px 0 0; color: var(--graph-muted); font-size: 12px; line-height: 1.5; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-status--error,
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-error-message { color: #9c352f; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-plot-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-icon-button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--graph-accent-border); border-radius: 8px; background: #fff; color: var(--graph-accent); cursor: pointer; font-size: 21px; font-weight: 700; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-icon-button:hover { background: var(--graph-accent-soft); }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-pan-hint { margin: 0 0 0 7px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-canvas-wrap { position: relative; width: 100%; height: clamp(380px, 54vw, 660px); min-height: 320px; overflow: hidden; border: 1px solid #e1e8df; border-radius: 11px; background: #fff; touch-action: none; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) #function-canvas { display: block; width: 100%; height: 100%; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-intercepts,
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-export { margin-top: 28px; padding-top: 22px; border-top: 1px solid #e6ebe4; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-subheading { align-items: end; margin-bottom: 12px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-subheading h3 { margin: 0; color: #293b2f; font-size: 17px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-subheading .graph-section-label { margin-bottom: 4px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-intercepts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-intercept-card { min-width: 0; padding: 13px 14px; border: 1px solid #e3eae1; border-radius: 9px; background: var(--graph-soft); }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-intercept-card h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; font-size: 13px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-intercept-card h4 i { width: 9px; height: 9px; border-radius: 50%; background: var(--series-color); }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-intercept-card dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 12px; margin: 0; font-size: 12px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-intercept-card dt { color: #708073; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-intercept-card dd { margin: 0; color: var(--graph-accent); font-weight: 750; overflow-wrap: anywhere; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-guide { margin-bottom: 24px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-guide-grid > div { padding: 14px; border: 1px solid #e5ebe3; border-radius: 9px; background: #fbfcfa; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-guide-grid h3 { margin: 0 0 7px; font-size: 14px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-guide-grid p,
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-disclaimer { margin: 0; color: #6f7e72; font-size: 13px; line-height: 1.65; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-disclaimer { margin-top: 14px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-guide code { padding: 2px 4px; border-radius: 4px; background: #edf2eb; color: var(--graph-accent); font-family: ui-monospace, Consolas, monospace; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-footer { display: flex; justify-content: space-between; gap: 18px; padding: 12px 2px; color: #879187; font-size: 12px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-dialog { box-sizing: border-box; width: min(600px, calc(100% - 32px)); max-height: min(82vh, 760px); padding: 22px; border: 1px solid #dfe7de; border-radius: 15px; background: #fff; color: var(--graph-ink); box-shadow: 0 24px 90px rgb(18 32 23 / 28%); }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-dialog::backdrop { background: rgb(20 31 23 / 50%); backdrop-filter: blur(2px); }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-dialog--error { width: min(460px, calc(100% - 32px)); }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #e6ebe4; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-dialog-header p { margin: 2px 0 6px; color: var(--graph-accent-2); font-size: 10px; font-weight: 800; letter-spacing: .11em; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-dialog-header h2 { margin: 0; font-size: 21px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-dialog-close { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid #e2e8e0; border-radius: 8px; background: #f9faf8; color: #526255; cursor: pointer; font-size: 23px; line-height: 1; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-dialog-body { max-height: 64vh; overflow: auto; padding-top: 12px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-dialog-body h3 { margin: 14px 0 5px; color: var(--graph-accent); font-size: 15px; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-dialog-body p,
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-error-message { margin: 0 0 11px; color: #657267; font-size: 12px; line-height: 1.65; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-error-message { margin-top: 16px; color: #9c352f; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-card[data-simple="true"] [data-full-only] { display: none !important; }
:where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) .graph-card[data-simple="true"] .graph-series-row:not(:first-child) { display: none; }

@media (prefers-reduced-motion: reduce) {
    :where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) *,
    :where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) *::before,
    :where(body[data-page="/calculations/function-grapher-graphing-calculator/"]) *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
