/* Stitch Pocket Calc System — project 14138619381293668352 */
:root{
 --st-bg:#faf9f4;--st-low:#f5f4ef;--st-container:#efeee9;--st-high:#e9e8e3;--st-white:#fff;
 --st-ink:#1b1c19;--st-muted:#686e65;--st-outline:#dde1d8;--st-primary:#536600;--st-lime:#d7f85e;
 --st-dark:#30312e;--st-danger:#ba1a1a;--canvas:var(--st-low);--surface:var(--st-white);
 --surface-soft:var(--st-container);--ink:var(--st-ink);--muted:var(--st-muted);--border:var(--st-outline);
 --accent:var(--st-primary);--accent-soft:#eff7cc;--accent-strong:#3e4c00;--danger:var(--st-danger);
 --radius:24px;--shadow:0 12px 32px -4px rgba(23,26,22,.08),0 2px 6px rgba(23,26,22,.04);
 --key-shadow:0 2px 0 #d0d4cb,0 1px 3px rgba(23,26,22,.04);--focus:#87a100;
 font-family:"Plus Jakarta Sans",Inter,"Pretendard","Noto Sans KR",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
body{background:var(--st-low);color:var(--st-ink);font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.app-header{position:sticky;top:0;z-index:40;max-width:none;height:68px;padding:0 clamp(18px,4vw,52px);background:rgba(250,249,244,.93);border-bottom:1px solid #e9e8e3;backdrop-filter:blur(18px);box-shadow:0 1px 8px rgba(0,0,0,.035)}
.brand{gap:10px}.brand-icon{width:31px;height:31px;padding:5px;border-radius:9px;background:var(--st-dark);color:var(--st-lime);font-size:13px;line-height:10px}.wordmark{font-size:21px;letter-spacing:-.8px;font-weight:750}.wordmark>span{color:var(--st-primary)}
.workspace-nav{position:absolute;left:50%;transform:translateX(-50%);margin:0;padding:4px;gap:2px;border-radius:999px;background:var(--st-container);box-shadow:inset 0 1px 2px rgba(23,26,22,.035)}
.nav-tab{min-height:34px;padding:7px 18px;border-radius:999px;color:#454936;font-size:12px;font-weight:650}.nav-tab.active{background:var(--st-dark);color:#fff;box-shadow:0 1px 3px rgba(23,26,22,.15)}.nav-tab:hover:not(.active){background:#ffffffaa;color:var(--st-ink)}
.header-actions{gap:7px}.header-actions .icon-button{width:36px;height:36px;border-radius:999px;background:var(--st-container);color:#454936}.header-actions .icon-button:hover:not(:disabled){background:var(--st-high);color:var(--st-ink)}.install-button{border-radius:999px;background:var(--st-white)}
.app-main{max-width:1210px;margin-top:36px;padding:0 clamp(24px,4vw,52px)}.workspace-heading{margin-bottom:31px}.eyebrow{margin-bottom:11px;color:var(--st-primary);font-size:11px;letter-spacing:.08em;font-weight:750}h1{margin-bottom:8px;font-size:clamp(38px,4.1vw,56px);line-height:1.05;letter-spacing:-.055em;font-weight:720}h1>span{color:var(--st-ink)}.intro{color:#454936;font-size:13px}
.local-badge{padding:9px 14px;border:0;border-radius:999px;background:#fff;color:#454936;box-shadow:0 1px 4px rgba(23,26,22,.045);font-size:11px;font-weight:650}.local-badge>span{width:7px;height:7px;background:#6e8600}
.calculator-layout{grid-template-columns:minmax(0,1.23fr) minmax(360px,.9fr);gap:30px}.calculator-card,.history-panel{border:0;border-radius:26px;background:#fff;box-shadow:var(--shadow)}.calculator-card{padding:28px}.history-panel{padding:28px;min-height:704px}
.mode-switch{padding:4px;background:var(--st-container);border-radius:999px}.mode-switch button{padding:7px 16px;border-radius:999px;color:#454936;font-size:12px}.mode-switch .selected{background:#fff;color:var(--st-ink);box-shadow:0 1px 3px rgba(23,26,22,.07)}
.angle-button{min-width:42px;min-height:31px;padding:5px 9px;border:0;border-radius:999px;background:var(--st-container);color:var(--st-ink)}.calculator-tools .icon-button{width:32px;height:32px;border-radius:999px;background:var(--st-container);color:var(--st-ink)}
.calc-display{min-height:181px;margin:26px 0 25px;padding:22px;border:1px solid #e5e8e2;border-radius:18px;background:var(--st-low);box-shadow:inset 0 1px 2px rgba(23,26,22,.02)}.display-label{margin-bottom:9px;color:#454936;font-size:10px}#expression{height:33px;color:#454936;font-size:18px;font-weight:500;letter-spacing:-.025em}#expression:focus-visible{box-shadow:0 1px 0 var(--st-primary)}
.result-line{min-height:70px;margin-top:5px}#result{color:var(--st-ink);font-size:clamp(42px,5vw,58px);font-weight:720;letter-spacing:-.045em;line-height:1.08}#result.result-medium{font-size:40px}#result.result-small{font-size:27px}.approximation{color:var(--st-primary)}.calculation-status{margin-top:9px;color:#7c8178;font-size:10px;text-align:left}.calculation-status.error{color:var(--st-danger)}
.keypad{gap:11px 10px}.key{min-height:64px;border:1px solid var(--st-outline);border-radius:14px;background:#fff;color:var(--st-ink);box-shadow:var(--key-shadow);font-size:24px;font-weight:620}.key:hover:not(:disabled){background:#fcfcfa;border-color:#cfd3ca}.key:active,.key.is-pressed{transform:translateY(2px);box-shadow:inset 0 1px 2px rgba(23,26,22,.08)}
.key-utility{background:#ebeae4;border-color:#dddfd8;color:var(--st-ink);font-size:19px;font-weight:600}.key-clear{color:var(--st-ink)}.key-operator{background:#e3e3de;border-color:#d5d7d0;color:var(--st-ink);font-size:25px}.key-equals{background:var(--st-lime);color:var(--st-ink);border-color:#c6e94a;box-shadow:0 2px 0 #bede4b,0 4px 12px rgba(215,248,94,.3);font-weight:750}.key-equals:hover:not(:disabled){background:#ddff64}.key-equals:active{background:#cfee4f;box-shadow:inset 0 1px 2px rgba(23,26,22,.1)}
.scientific-keys{gap:7px;margin-bottom:12px}.scientific-keys button{min-height:39px;border:1px solid var(--st-outline);border-radius:10px;background:var(--st-low);color:var(--st-primary);font-weight:650}.scientific-keys button:hover{background:#eff3e0}
.calculation-actions{margin-top:22px;padding-top:14px;border-top:0}.calculation-actions .text-button{padding:8px 12px;border-radius:10px;background:var(--st-container);color:var(--st-ink)}.calculation-actions .icon-button{background:var(--st-container);color:var(--st-ink);border-radius:10px}
.history-heading h2{font-size:18px;letter-spacing:-.03em}.history-heading>div>.icon{width:33px;height:33px;padding:8px;border-radius:999px;background:var(--st-container);color:var(--st-primary)}.count-badge{padding:4px 8px;border-radius:999px;background:var(--st-lime);color:var(--st-ink);font-size:11px}
.history-filters{margin:18px 0 14px}.filter-tabs{gap:5px}.filter-tabs button{padding:6px 10px;border-radius:8px;background:var(--st-low);color:#454936}.filter-tabs .active{background:#fff;color:var(--st-ink);box-shadow:inset 0 0 0 1px var(--st-outline)}.filter-tabs .active:after{display:none}
.history-search{padding:12px 13px;border:0;border-radius:12px;background:var(--st-low)}.history-search:focus-within{box-shadow:0 0 0 2px rgba(83,102,0,.28)}.history-list{margin-top:17px;max-height:471px}.history-item{margin-bottom:12px;padding:15px 14px 11px;border:0;border-radius:16px;background:var(--st-low)}.history-recall{padding:0}.history-recall:hover{background:transparent}.history-item-title{display:inline-flex;max-width:100%;margin-bottom:7px;padding:3px 8px;border-radius:6px;background:#e7f79c;color:var(--st-ink);font-size:11px}.history-item-title .icon{display:none}.history-item-expression{color:#454936;font-size:13px}.history-item-result{margin-top:4px;font-size:18px;letter-spacing:-.02em;text-align:right}.history-item-bottom{margin-top:7px}.history-time{font-size:10px}
.history-tip{margin-top:7px;padding:13px 14px;border-radius:13px;background:var(--st-container);color:#454936}.history-tip strong{color:var(--st-ink)}.empty-art{background:var(--st-low);border-color:var(--st-outline)}.empty-art:after{background:var(--st-lime);color:var(--st-ink)}
.below-calculator{margin-top:18px;color:#454936}.below-calculator .text-button{padding:8px 14px;border-radius:999px;background:var(--st-container);color:var(--st-ink)}kbd{background:var(--st-container);border-color:#d8d8d1;color:var(--st-ink);box-shadow:none}
.app-footer{max-width:1210px;margin-top:58px;padding:22px clamp(24px,4vw,52px) 30px;border-top:0}.footer-wordmark{color:var(--st-ink);font-size:19px}.app-footer p,.app-footer button{color:#454936}
.app-dialog{border:0;border-radius:22px;background:#fff;box-shadow:0 22px 70px rgba(23,26,22,.22)}.app-dialog::backdrop{background:rgba(23,26,22,.38)}.field-input{border-color:var(--st-outline);background:var(--st-low)}.button{border-color:var(--st-outline);background:var(--st-low)}.button-primary{background:var(--st-lime);border-color:#c5e847;color:var(--st-ink)}.button-primary:hover:not(:disabled){background:#defd6a}
#notes-view .workspace-heading{align-items:flex-end}.notes-layout{grid-template-columns:minmax(280px,.78fr) minmax(0,1.72fr);gap:24px;min-height:630px}.notes-sidebar{padding:0;border:0;border-radius:0;background:transparent;gap:14px}.notes-sidebar-heading{padding:20px 20px 8px;border-radius:22px 22px 0 0;background:#fff}.notes-sidebar-heading h2{font-size:18px;letter-spacing:-.03em}.notes-count{border-radius:999px;background:var(--st-container);color:#454936}.notes-new{margin-top:-14px;min-height:46px;border:0;border-radius:0 0 22px 22px;background:var(--st-lime);color:var(--st-ink);box-shadow:0 2px 0 #bede4b}.notes-new:hover{background:#defd6a}
.notes-list{gap:12px}.notes-entry{width:100%;padding:17px;border:0;border-radius:17px;background:#fff;box-shadow:0 2px 7px rgba(23,26,22,.045)}.notes-entry[aria-current="true"]{position:relative;background:#fff;border:0;box-shadow:0 5px 15px rgba(23,26,22,.07)}.notes-entry[aria-current="true"]:before{content:"";position:absolute;left:0;top:11px;bottom:11px;width:5px;border-radius:0 5px 5px 0;background:var(--st-lime)}.notes-name{color:var(--st-ink);font-size:13px}.notes-preview{color:var(--st-ink)}.notes-local-hint{margin:0;padding:16px 17px;border-radius:16px;background:var(--st-container);line-height:1.8}
.notes-editor{padding:30px 32px;border:0;border-radius:26px;background:#fff;box-shadow:var(--shadow)}.notes-title-input{font-size:clamp(24px,2.4vw,30px);font-weight:720;letter-spacing:-.04em}.notes-saved{color:var(--st-primary);font-weight:650}.notes-toolbar{margin:18px 0 24px;justify-content:flex-end}.notes-toolbar .notes-btn{min-width:38px;min-height:38px;border:0;border-radius:11px;background:var(--st-container);color:#454936}.notes-toolbar .notes-btn:hover{background:var(--st-high);color:var(--st-ink)}
.notes-table-heading{padding:0 8px 8px;color:#454936;text-transform:uppercase;letter-spacing:.04em}.notes-row{padding:12px 8px;border-bottom-color:var(--st-container)}.notes-input{min-height:40px;padding:9px 10px;border:0;border-radius:9px;background:transparent}.notes-input:hover,.notes-input:focus{background:var(--st-low)}.notes-input:focus-visible{outline-color:var(--st-primary)}.notes-add-row{width:100%;min-height:43px;margin-top:16px;border:0;border-radius:13px;background:var(--st-low);color:var(--st-ink)}.notes-add-row:hover{background:var(--st-container)}
.notes-total{margin-top:30px;padding:22px 24px;border-radius:17px;background:var(--st-low)}.notes-total-label{color:#454936;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.notes-total-value{min-width:220px;padding:14px 20px;border-radius:14px;background:var(--st-lime);color:var(--st-primary);font-size:clamp(26px,3vw,35px);font-weight:750;text-align:center}
body[data-theme="dark"]{--canvas:#171a16;--surface:#232722;--surface-soft:#30352e;--ink:#f2f1ec;--muted:#b8beb5;--border:#434940;--accent:#b4d33d;--accent-soft:#34411c;--accent-strong:#d7f85e;--focus:#d7f85e;background:#171a16}body[data-theme="dark"] .app-header{background:rgba(23,26,22,.94);border-color:#2b302a}body[data-theme="dark"] .workspace-nav,body[data-theme="dark"] .header-actions .icon-button,body[data-theme="dark"] .mode-switch,body[data-theme="dark"] .angle-button{background:#30352e}body[data-theme="dark"] .nav-tab.active{background:#f2f1ec;color:#171a16}body[data-theme="dark"] .calculator-card,body[data-theme="dark"] .history-panel,body[data-theme="dark"] .local-badge,body[data-theme="dark"] .notes-editor,body[data-theme="dark"] .notes-entry,body[data-theme="dark"] .notes-sidebar-heading{background:#232722}body[data-theme="dark"] .calc-display,body[data-theme="dark"] .history-item,body[data-theme="dark"] .history-search,body[data-theme="dark"] .notes-total{background:#1f231e;border-color:#343a32}body[data-theme="dark"] .key{background:#2a3029;border-color:#434940;color:#f2f1ec;box-shadow:0 2px 0 #171a16}body[data-theme="dark"] .key-utility{background:#353a34}body[data-theme="dark"] .key-operator{background:#40463f;color:#f2f1ec}body[data-theme="dark"] .key-equals{background:var(--st-lime);color:#171a16;border-color:#badb45;box-shadow:0 2px 0 #819b1f,0 4px 12px rgba(215,248,94,.16)}body[data-theme="dark"] .history-item-title{background:#46551a;color:#eef9bc}body[data-theme="dark"] .notes-new{color:#171a16}body[data-theme="dark"] .notes-total-value{color:#3e4c00}
@media(max-width:980px){.app-main{padding-inline:24px}.calculator-layout{grid-template-columns:minmax(0,1.1fr) minmax(310px,.9fr);gap:20px}.calculator-card,.history-panel{padding:22px}.notes-layout{grid-template-columns:235px minmax(0,1fr);gap:18px}.notes-editor{padding:26px 24px}}
@media(max-width:760px){.app-header{height:64px;padding:0 16px}.brand-icon{width:29px;height:29px}.wordmark{font-size:20px}.workspace-nav{position:static;transform:none;margin-left:auto}.nav-tab{min-height:32px;padding:6px 12px}.nav-tab .icon{display:none}.header-actions{margin-left:0}.header-actions .install-button span,.header-actions #help-button{display:none}.app-main{margin-top:21px;padding:0 14px}.workspace-heading{margin-bottom:18px}.workspace-heading .local-badge{display:none}h1{font-size:36px}.intro{font-size:12px}.calculator-layout{grid-template-columns:1fr;gap:18px}.calculator-card,.history-panel{border-radius:22px;padding:18px}.calc-display{min-height:158px;margin:18px 0;padding:18px}#result{font-size:43px}.keypad{gap:9px}.key{min-height:59px;border-radius:12px;font-size:22px}.key-utility{font-size:17px}.key-operator{font-size:23px}.history-panel{min-height:0}.history-list{max-height:430px}.below-calculator>span{display:none}.below-calculator .text-button{width:100%;justify-content:center}.notes-layout{grid-template-columns:1fr;gap:15px}.notes-list{flex-direction:row}.notes-entry{width:190px;flex:0 0 190px}.notes-editor{padding:22px 17px}.notes-total{align-items:stretch;flex-direction:column}.notes-total-value{width:100%;min-width:0}}
@media(max-width:430px){.app-header{padding-inline:12px;gap:7px}.brand{gap:7px}.wordmark{display:none}.nav-tab{padding:6px 10px;font-size:11px}.header-actions .icon-button{width:32px;height:32px}.app-main{padding-inline:10px}.eyebrow{font-size:9px}h1{font-size:31px}.intro{font-size:11px}.calculator-card{padding:15px}.calc-display{padding:16px;border-radius:15px}#expression{font-size:17px}#result{font-size:39px}.key{min-height:55px}.scientific-keys{grid-template-columns:repeat(3,minmax(0,1fr))}.history-panel{padding:17px}.notes-editor{padding:20px 14px}}
