/* KarobarOS os-29 — Classic calculator restore.
   Fixed-size card: one-line expression, one fixed result line, classic
   4-column keypad. NO internal scrolling, NO growing/shrinking parts.
   Loaded last so it supersedes the legacy scrollable .quick-calc rules
   and the os-shared .shared-calc* rules in style.css.
   os-43b (2026-11-14): compact-height pass — Boss: "Calculator bohat
   opar tak jata hai, wo kam kro." Sirf sizes/padding/gaps kam kiye;
   width 288px, one-line auto-fit display aur no-scroll rule wese hi. */

/* — The classic card (standalone page + inside the popup) — */
.classic-calc{background:#fff;color:#1d2126;border:1px solid #D7E0F0;border-radius:16px;padding:12px;box-shadow:0 6px 24px #00000014}
.classic-calc .calc-screen{background:#EFF3FB;border:1px solid #D7E0F0;border-radius:12px;padding:8px 10px 7px;margin:0;text-align:right}
.classic-calc .calc-screen small{display:block;min-height:12px;color:#66779C;font-size:11px}
.classic-calc .calc-screen input{display:block;width:100%;box-sizing:border-box;border:0;background:transparent!important;color:#1d2126;font-size:22px;font-weight:600;text-align:right;padding:2px 0;white-space:nowrap}
.classic-calc .calc-screen strong{display:block;min-height:29px;font-size:24px;line-height:1.2;color:#1d2126;white-space:nowrap;overflow:hidden}
.classic-calc .calc-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:7px}
.classic-calc .calc-keys button{min-height:46px;padding:5px;font-size:17px;font-weight:600;border-radius:10px;background:#EDF1F8;border:1px solid #D7E0F0;color:#1d2126;cursor:pointer}
.classic-calc .calc-keys button:active{transform:scale(.97)}
.classic-calc .calc-keys button.primary{background:#0B2E63;border-color:#0B2E63;color:#fff}

/* Standalone Calculator page: roomier classic proportions. */
#app .classic-calc{padding:12px}
#app .classic-calc .calc-screen input{font-size:24px}
#app .classic-calc .calc-screen strong{min-height:33px;font-size:27px}
#app .classic-calc .calc-keys button{min-height:48px;font-size:18px}

/* — The popup pane: fixed size, never scrolls — */
#quickCalc{position:fixed;right:20px;bottom:76px;width:288px;max-height:none;overflow:hidden;padding:9px;background:#fff;color:#1d2126;border:1px solid #D7E0F0;border-radius:16px;box-shadow:0 18px 50px #00000045;z-index:1000}
#quickCalc .classic-calc{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0}
#quickCalc .calc-screen{padding:7px 9px 6px}
#quickCalc .calc-screen small{min-height:11px}
#quickCalc .calc-screen input{font-size:18px;padding:1px 0}
#quickCalc .calc-screen strong{min-height:23px;font-size:20px}
#quickCalc .calc-keys{gap:4px;margin-top:6px}
#quickCalc .calc-keys button{min-height:34px;font-size:16px}
.calc-pane-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}
.calc-pane-header b{font-size:14px;color:#1d2126}
/* 2026-11-25 (Boss: 'Cross wala button poori app se khatam kar ke sirf icon rakho') — calc pane ka × ab BARE hai: koi dabba/disc nahi, sirf ×, tap 44px */
.calc-pane-header button{width:44px;height:44px;min-height:44px;padding:0;border-radius:0;background:transparent;border:0;color:#1d2126;font-size:20px;line-height:1;cursor:pointer}
#quickCalc .apply-calculation{width:calc(50% - 3px);float:left;margin-top:6px;min-height:36px;background:#0B2E63;border:1px solid #0B2E63;color:#fff;border-radius:10px;font-weight:700;cursor:pointer}
#quickCalc .calculator-cancel{width:calc(50% - 3px);float:right;margin-top:6px;min-height:36px;padding:6px;background:transparent;border:1px solid #D7E0F0;border-radius:10px;color:#1d2126;cursor:pointer}
#quickCalc #calculatorMessage{clear:both;min-height:14px;margin:3px 0 0;font-size:11px;line-height:1.35;color:#b43223;white-space:normal;overflow-wrap:break-word}

/* Mobile/tablet: popup phir bhi FIXED 288px — os-36 (Round 2, item 3).
   Pehle yahan width:auto + left/right:12px tha, jis se tablet par
   744px aur mobile par 366px chaura ho jata tha (spec: har width
   par chhota fixed 288px popup). Ab right-aligned 288px; bohat
   tang screen par max-width usay screen ke andar rakhta hai —
   digits auto-fit (calculator.js) pehle ki tarah kaam karta hai. */
@media(max-width:899px){
 #quickCalc{left:auto;right:12px;width:288px;max-width:calc(100vw - 24px);bottom:calc(76px + env(safe-area-inset-bottom))}
}
@media print{#quickCalc{display:none!important}}

/* — 2026-11-23n Part 1 (Boss: 'calculator ka blue color hamara wala
   ni hua') — calculator ke saare blue ab YA app ke exact brand navy
   #0B2E63 hain ('=' key + Use result pehle se thay) YA neutral grey;
   darmiyan wala koi doosra blue (#EFF3FB/#EDF1F8/#D7E0F0/#66779C
   wala pale blue-grey khandan) khatam. Orange accent = #FF7A00
   exact (#calcShortcut, audit-fixes.css). — */
.classic-calc{border-color:#DEDEDA}
.classic-calc .calc-screen{background:#F7F7F4;border-color:#DEDEDA}
.classic-calc .calc-screen small{color:#6E6E66}
.classic-calc .calc-screen input{caret-color:#0B2E63}
.classic-calc .calc-keys button{background:#F0F0EC;border-color:#DEDEDA}
#quickCalc{border-color:#DEDEDA}
.calc-pane-header button{background:transparent;border-color:transparent}
#quickCalc .calculator-cancel{border-color:#DEDEDA}
