/* ===== Phone layout (js/mobile). Everything here is in "design pixels": the phone canvas is 736 wide (2x a 368pt screen)
   and is scaled to the real screen width by js/mobile/app.js. All rules are gated by html.m so the desktop binder is untouched. ===== */
#m { display: none; }
html.m { --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif; --serif: 'Times New Roman', Times, 'Liberation Serif', serif; }
html.m, html.m body { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; overflow: hidden; background: linear-gradient(180deg, #000 0, #000 55%, #4a2514 100%); overscroll-behavior: none; touch-action: manipulation; -webkit-text-size-adjust: 100%; -webkit-touch-callout: none; }
html.m #stage { display: none !important; }
html.m #m { display: block; position: fixed; left: 0; top: 0; transform-origin: 0 0; background: linear-gradient(180deg, #000 0, #000 55%, #4a2514 100%); overflow: hidden; font-family: var(--sans); color: #000; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
html.m #m * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html.m :where(#m button) { font-family: inherit; border: 0; background: none; padding: 0; color: inherit; cursor: pointer; }
html.m :where(#m input, #m textarea, #m select, #m [contenteditable]) { user-select: text; -webkit-user-select: text; font-family: inherit; }
html.m #m [contenteditable] * { user-select: text; -webkit-user-select: text; }
html.m :where(#m input, #m textarea, #m select) { font-size: 32px; } /* 16pt at the phone's 0.5 scale: stops iOS zooming into fields */

/* ---- copper bezel + paper ---- */
html.m .bz { position: absolute; left: 4px; right: 4px; top: var(--sat, 116px); bottom: 4px; padding: 18px 20px; border-radius: 70px;
  background: var(--leather-tex-soft), linear-gradient(135deg, #c08659 0%, #b27648 28%, #8f5230 56%, #6e3b20 80%, #5c301a 100%);
  box-shadow: 0 0 0 1px #0c0502, inset 0 0 0 2px rgba(78, 44, 26, .85), inset 0 5px 1px 0 rgba(255, 208, 160, .85), inset 3px 0 1px 0 rgba(255, 190, 140, .3), inset -3px -4px 3px rgba(0, 0, 0, .3); }
html.m .pg { position: relative; width: 100%; height: 100%; border-radius: 52px; overflow: hidden;
  background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 25%, #e9e9e9 55%, #e3e3e3 100%);
  box-shadow: 0 -1px 0 2px #d4d7dc, 0 -1px 0 4px #a5abb3, 0 -1px 0 6px #858c96, 0 0 6px 8px rgba(50, 22, 10, .45), inset 0 0 0 2px rgba(255, 255, 255, .85), inset 0 6px 14px rgba(255, 255, 255, .5); }
html.m .pg::before { content: ''; position: absolute; inset: 0; background: var(--paper-tex); opacity: .4; pointer-events: none; }
html.m .scr { position: absolute; inset: 0; overflow: hidden; }
html.m .scr-in { position: absolute; inset: 0; }
html.m .mtoast { position: absolute; left: 50%; bottom: 150px; transform: translate(-50%, 20px); background: rgba(30, 30, 30, .92); color: #fff; font: 600 28px var(--sans); padding: 18px 34px; border-radius: 40px; opacity: 0; pointer-events: none; transition: .25s; z-index: 90; white-space: nowrap; }
html.m .mtoast.on { opacity: 1; transform: translate(-50%, 0); }
html.m #toast { display: none; }
html.m .mtoast { display: block; }

/* ---- Daily ---- */
html.m .md { position: absolute; inset: 0; }
html.m .mh-burger { position: absolute; left: 32px; top: 37.5px; width: 46px; height: 32px; line-height: 0; }
html.m .mh-tri { position: absolute; top: 22px; width: 26px; height: 33px; line-height: 0; }
html.m .mh-tri.l { left: 188px; } html.m .mh-tri.r { left: 590px; }
html.m .mh-title { position: absolute; left: 214px; width: 376px; top: 24px; height: 30px; text-align: center; font: 400 25px/30px var(--serif); color: #131313; white-space: nowrap; }
html.m .mh-search { position: absolute; left: 636px; top: 21px; width: 40px; height: 40px; line-height: 0; }
html.m .mwk { position: absolute; left: 184px; top: 66px; width: 491px; height: 28px; display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font: 400 22px/28px var(--sans); color: #707070; }
html.m .mgrid { position: absolute; left: 184px; top: 94px; width: 491px; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 66px; }
html.m .mcd { height: 66px; display: flex; align-items: center; justify-content: center; font: 600 26px var(--sans); color: #000; padding: 0; }
html.m .mcd span { display: flex; align-items: center; justify-content: center; min-width: 66px; height: 66px; border-radius: 50%; }
html.m #m .mcd.sun, html.m #m .mcd.sat { color: #e4b13d; }
html.m #m .mcd.oth { color: #7d7d7d; font-weight: 500; }
html.m .mcd.sel span { background: #e94e3c; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
html.m .mdn { position: absolute; right: 516px; top: 127px; font: 700 128px/128px var(--sans); color: #c0392b; letter-spacing: -2px; transform: scaleX(1.08); transform-origin: right center; }
html.m .mdw { position: absolute; right: 516px; top: 276px; font: 700 36px/40px var(--sans); color: #000; letter-spacing: 1.5px; white-space: nowrap; }
html.m .md.col .mdn { display: none; }
html.m .md.col .mdw { left: 12px; right: auto; top: 108px; font-size: 34px; }
html.m .mlow { position: absolute; left: 0; right: 0; bottom: 0; }
html.m .mtl { position: absolute; left: 430px; width: 256px; top: 0; bottom: 19px; }
html.m .mtl-ad { position: absolute; left: 0; right: 0; top: 0; overflow: hidden; z-index: 2; }
html.m .mad { height: 21px; margin: 0; padding: 0 6px; background: rgba(150, 210, 110, .3); font: 400 22px/21px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.m .mad span { display: block; overflow: hidden; text-overflow: ellipsis; }
html.m .mtl-sc { position: absolute; left: 0; right: 0; bottom: 0; top: 0; overflow-y: scroll; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior: contain; }
html.m .mtl-sc::-webkit-scrollbar { display: none; }
html.m .mtl-in { position: relative; width: 100%; }
html.m .mshade { position: absolute; left: 0; right: 0; background: rgba(0, 0, 0, .09); }
html.m .mhl { position: absolute; left: 0; right: 0; height: 2px; background: #b3b3b3; }
html.m .mhh { position: absolute; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, #c4c4c4 0 4px, transparent 4px 8px); }
html.m .mhn { position: absolute; left: 0; margin-top: 1px; font: 400 22px/22px var(--serif); color: #696969; white-space: nowrap; }
html.m .mev { position: absolute; padding: 2px 6px; overflow: hidden; font: 400 22px/26px var(--serif); white-space: nowrap; z-index: 1; }
html.m .mev span { display: block; overflow: hidden; text-overflow: ellipsis; }
html.m .mnow { position: absolute; left: 0; right: -10px; height: 2px; background: #c03a25; z-index: 3; pointer-events: none; }
html.m .mnow i { position: absolute; left: 2px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #c03a25; }
html.m .mtk-h { position: absolute; left: 13px; top: 14px; font: 700 31px/36px var(--sans); color: #000; letter-spacing: -.2px; }
html.m .mtk-exp { position: absolute; left: 310px; top: 16px; width: 36px; height: 36px; line-height: 0; }
html.m .mtk-add { position: absolute; left: 354px; top: 7px; width: 56px; height: 56px; line-height: 0; }
html.m .mtk-add:active { opacity: .7; }
html.m .mtk-list { position: absolute; left: 0; width: 422px; top: 69px; bottom: 183px; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior: contain; }
html.m .mtk-list::-webkit-scrollbar { display: none; }
html.m .mfill { flex: 1 0 56px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='55'%3E%3Crect x='0' y='53' width='4' height='2' fill='%23c6c6c6'/%3E%3C/svg%3E") repeat; }
html.m .mrow { position: relative; flex: none; min-height: 84px; padding: 12px 0 7px 122px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='2'%3E%3Crect width='4' height='2' fill='%23c6c6c6'/%3E%3C/svg%3E") repeat-x left bottom; transition: opacity .25s; }
html.m .mchk { position: absolute; left: 1px; top: 13px; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid #7d7c7a; }
html.m .mpill { position: absolute; left: 52px; top: 18px; width: 62px; height: 28px; border-radius: 7px; background: #e5e5e5; color: #222; text-align: center; font: 400 20px/28px var(--serif); }
html.m .mrow.over .mpill { background: #c4311f; color: #fff; }
html.m .mtt { width: 288px; }
html.m .mttl { font: 400 25.6px/26px var(--serif); color: #000; overflow-wrap: anywhere; }
html.m .mrow.pA .mttl { font-weight: 700; }
html.m .mrow.over .mttl { color: #c0392b; }
html.m .mcat { margin-top: 15px; height: 22px; line-height: 22px; font: 400 18.6px/22px var(--serif); white-space: nowrap; display: flex; align-items: center; }
html.m .mrow.pA .mcat { font-weight: 700; font-size: 21px; }
html.m .mcat i { font-style: normal; font-size: 24px; margin-right: 0; margin-left: -1px; line-height: 22px; width: 31px; }
html.m .mic { position: absolute; left: 0; top: 0; }
html.m .mbell { position: absolute; left: 330px; top: 16px; line-height: 0; }
html.m .mrep { position: absolute; left: 383px; top: 19px; width: 37px; height: 37px; border: 2.6px solid #8c8c8c; border-radius: 50%; text-align: center; font: 500 22px/31px var(--sans); color: #8c8c8c; }
html.m .mrow.done { opacity: .45; } html.m .mrow.done .mttl { text-decoration: line-through; } html.m .mrow.done .mchk { background: #7d7c7a; }
html.m .mrow.new .mnew { width: 296px; height: 40px; border: 0; background: none; outline: none; font: 400 25px var(--serif); font-size: 32px; padding: 0; color: #000; margin-top: -4px; }
html.m .mbar { position: absolute; left: 0; right: 0; bottom: 0; height: 183px; }
html.m .mb-q { position: absolute; left: 2px; top: 18px; width: 48px; height: 48px; line-height: 0; }
html.m .mb-c { position: absolute; left: 70px; top: 22px; width: 40px; height: 40px; line-height: 0; }
html.m .mb-c.on svg g { stroke: #2f6fed; }
html.m .mb-n { position: absolute; left: 13px; top: 92px; font: 700 27.5px/36px var(--sans); color: #000; letter-spacing: -.2px; }
html.m .mb-e { position: absolute; left: 360px; top: 86px; width: 52px; height: 52px; line-height: 0; } html.m .mb-e svg { width: 52px; height: 52px; }

/* ---- bottom sheets / menus ---- */
html.m .mlayer { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
html.m .mlayer.on { pointer-events: auto; }
html.m .mbk { position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background .24s; }
html.m .mlayer.on .mbk, html.m .mmenu.on .mbk { background: rgba(0, 0, 0, .42); }
html.m .msheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - 140px); display: flex; flex-direction: column; background: #f5f5f5; border-radius: 44px 44px 0 0; box-shadow: 0 -8px 40px rgba(0, 0, 0, .4); transform: translateY(104%); transition: transform .26s cubic-bezier(.2, .85, .25, 1); color: #1a1a1a; font-family: var(--sans); }
html.m .mlayer.on .msheet { transform: none; }
html.m .msheet.full { top: 120px; max-height: none; }
html.m .mgrab { display: block; flex: none; width: 90px; height: 9px; border-radius: 5px; background: #c9c9c9; margin: 14px auto 4px; }
html.m .msb { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
html.m .msheet .te { width: auto; padding: 14px 36px 56px; gap: 22px; font-size: 28px; }
html.m .msheet .te-title { font: 700 36px var(--sans); padding: 16px 20px; border-radius: 18px; border: 1px solid #d4d4d4; background: #fff; }
html.m .msheet .te-row { gap: 16px; }
html.m .msheet .te-row label { width: 150px; font-size: 26px; color: #4d4d4d; flex: none; }
html.m .msheet .te-row input, html.m .msheet .te-row select { font-size: 32px; padding: 12px 18px; min-height: 68px; border-radius: 16px; border: 1px solid #d4d4d4; background: #fff; color: #222; }
html.m .msheet .te-row .te-min { flex: 0 0 150px; }
html.m .msheet .te-row textarea { font: 400 32px/1.35 var(--sans); padding: 14px 18px; min-height: 190px; border-radius: 16px; border: 1px solid #d4d4d4; background: #fff; color: #222; }
html.m .msheet .te-pri { gap: 14px; }
html.m .msheet .te-pri button { width: 96px; height: 68px; border-radius: 16px; font: 700 30px var(--sans); border: 1px solid #d4d4d4; background: #fff; }
html.m .msheet .te-foot { margin-top: 10px; }
html.m .msheet .te-foot button { font: 600 32px var(--sans); padding: 18px 44px; border-radius: 18px; }
html.m .msheet .pm-list { padding: 8px 20px 50px; min-width: 0; }
html.m .msheet .pm-list button { font: 400 33px var(--sans); padding: 24px 22px; border-radius: 16px; color: #1a1a1a; border-bottom: 1px solid #e3e3e3; border-radius: 0; text-align: left; }
html.m .msheet .pm-sw { grid-template-columns: repeat(6, 1fr); gap: 20px; padding: 24px 36px 56px; }
html.m .msheet .pm-sw i { width: 100%; aspect-ratio: 1; height: auto; }
html.m .msheet .pm-form { padding: 24px 36px 56px; gap: 14px; } html.m .msheet .pm-input { width: auto; flex: 1; font-size: 32px; padding: 14px 18px; border-radius: 16px; } html.m .msheet .pm-form button { font-size: 30px; padding: 0 28px; border-radius: 16px; }
html.m .msheet .pf, html.m .msheet .cp, html.m .msheet .hp { width: auto; }
html.m .msheet .pf-h { font: 700 36px var(--sans); } html.m .msheet .pf-c { font-size: 28px; } html.m .msheet .pf-c input { width: 36px; min-height: 0; height: 36px; } html.m .msheet .pf-f { font-size: 24px; }
html.m .msheet .cp table { font-size: 26px; } html.m .msheet .cp th { font-size: 22px; } html.m .msheet .cp td input[type=checkbox] { width: 40px; height: 40px; min-height: 0; }
html.m .msheet .hp ul { font-size: 28px; line-height: 1.6; padding-left: 40px; }
html.m .msheet .gf input.te-title { font-size: 32px; }
html.m .msheet .te-ok { background: #2f6fed; color: #fff; }

/* Daily Notes / note sheets */
html.m .mn-h { flex: none; display: flex; align-items: baseline; gap: 18px; padding: 6px 36px 14px; border-bottom: 1px solid #e0e0e0; }
html.m .mn-h b { font: 700 34px var(--sans); } html.m .mn-h em { font: 400 26px var(--sans); color: #555; font-style: normal; flex: 1; }
html.m .mn-done { font: 600 32px var(--sans); color: #2f6fed; padding: 6px 4px; }
html.m .mn-ed { flex: 1; min-height: 0; display: flex; flex-direction: column; }
html.m .me { flex: 1; min-height: 0; display: flex; flex-direction: column; }
html.m .me-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 8px 40px 14px; zoom: 1.5; font-size: 22px; line-height: 1.32; outline: none; color: #111; caret-color: #2f6fed; word-wrap: break-word; -webkit-overflow-scrolling: touch; }
html.m .me-body:empty::before { content: attr(data-ph); color: #6c6c6c; }
html.m .me-body div, html.m .me-body p { margin: 0; min-height: 1em; }
html.m .me-body ul, html.m .me-body ol { margin: 0; padding-left: 1.4em; }
html.m .me-body .cl { display: flex; align-items: baseline; gap: 4px; } html.m .me-body .cl .cb { display: inline-block; width: .7em; height: .7em; border: 1.6px solid #666; border-radius: 3px; flex: none; } html.m .me-body .cl .cb.on { background: #2f6fed; border-color: #2f6fed; box-shadow: inset 0 0 0 2px #fff; } html.m .me-body .cl.done { color: #5c5c5c; text-decoration: line-through; }
html.m .me-bar { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 12px 18px; background: #e9e9ec; border-top: 1px solid #d5d5d8; scrollbar-width: none; }
html.m .me-bar::-webkit-scrollbar { display: none; }
html.m .me-bar button { flex: none; min-width: 84px; height: 72px; padding: 0 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .15); font: 700 32px var(--sans); color: #222; display: flex; align-items: center; justify-content: center; }
html.m .me-bar button.on { background: #2f6fed; color: #fff; } html.m .me-bar button.on svg * { stroke: #fff; }
html.m .mcdot { width: 34px; height: 34px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .2); }

/* slide-over menu */
html.m .mmenu { position: absolute; inset: 0; z-index: 70; pointer-events: none; }
html.m .mmenu.on { pointer-events: auto; }
html.m .mpanel { position: absolute; left: 0; top: 0; bottom: 0; width: 540px; padding: calc(var(--sat, 116px) + 20px) 0 40px; background: var(--paper-tex), linear-gradient(180deg, #f6f6f6, #e6e6e6); box-shadow: 0 0 60px rgba(0, 0, 0, .55); border-radius: 0 56px 56px 0; transform: translateX(-104%); transition: transform .26s cubic-bezier(.2, .85, .25, 1); display: flex; flex-direction: column; overflow-y: auto; }
html.m .mmenu.on .mpanel { transform: none; }
html.m .mp-h { font: 700 46px var(--serif); padding: 12px 44px 26px; color: #1a1a1a; }
html.m .mpanel button { text-align: left; font: 400 33px/1.2 var(--serif); padding: 26px 44px; color: #1a1a1a; border-top: 1px solid rgba(0, 0, 0, .08); }
html.m .mpanel button.on { color: #c0392b; font-weight: 700; }
html.m .mpanel hr { border: 0; height: 24px; margin: 0; }
html.m .mp-f { margin-top: auto; padding: 24px 44px; font: 400 24px var(--sans); color: #5c5c5c; }

/* search sheet */
html.m .ms-in { flex: none; display: flex; align-items: center; gap: 16px; margin: 8px 30px 12px; padding: 0 22px; height: 84px; border-radius: 42px; background: #e6e6e8; }
html.m .ms-in input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 34px; color: #111; -webkit-appearance: none; }
html.m .ms-x { font: 400 30px var(--sans); color: #2f6fed; }
html.m .ms-in span { display: flex; width: 36px; } html.m .ms-in svg { width: 36px; height: 36px; }
html.m .ms-res { flex: 1; overflow-y: auto; padding: 0 20px 40px; }
html.m .ms-res h4 { margin: 24px 18px 8px; font: 700 22px var(--sans); letter-spacing: 1px; text-transform: uppercase; color: #5c5c5c; }
html.m .ms-res button { display: flex; width: 100%; align-items: center; gap: 18px; text-align: left; padding: 22px 18px; border-radius: 16px; font: 400 31px/1.25 var(--serif); color: #111; border-bottom: 1px solid #e8e8e8; }
html.m .ms-res button em { margin-left: auto; font: 400 24px var(--sans); color: #5c5c5c; font-style: normal; flex: none; }
html.m .ms-res i { width: 28px; height: 28px; border: 2.5px solid #888; border-radius: 50%; flex: none; } html.m .ms-res i.done { background: #888; }
html.m .ms-res mark { background: #ffe58a; color: inherit; }
html.m .ms-res .sn { flex-direction: column; align-items: flex-start; gap: 4px; } html.m .ms-res .sn span { font: 400 25px var(--sans); color: #555; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.m .ms-hint { margin: 30px 24px; color: #5c5c5c; font: 400 28px var(--sans); }
html.m .strike { text-decoration: line-through; color: #5c5c5c; }

/* ---- Shared screen frame (every tab except Daily) ---- */
html.m .sc { position: absolute; inset: 0; }
html.m .sh-head { position: absolute; left: 0; right: 0; top: 0; height: 86px; z-index: 3; }
html.m .sh-l { position: absolute; left: 12px; top: 18px; width: 86px; height: 70px; display: flex; align-items: center; padding-left: 20px; line-height: 0; }
html.m .sh-r { position: absolute; left: 590px; top: 6px; width: 86px; height: 70px; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; line-height: 0; }
html.m .sh-t { position: absolute; left: 112px; right: 112px; top: 24px; height: 30px; text-align: center; font: 400 25px/30px var(--serif); color: #131313; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.m .sh-l:active, html.m .sh-r:active { opacity: .6; }
html.m .sb { position: absolute; left: 0; right: 0; top: 86px; bottom: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 34px 80px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
html.m .sb::-webkit-scrollbar { display: none; }
html.m .sx-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 34px 0 16px; }
html.m .sb > .sx-row:first-child { margin-top: 12px; }
html.m .sx-h { margin: 0; font: 700 40px/1.12 var(--serif); color: #131313; letter-spacing: -.2px; }
html.m .sx-sub { margin-top: 6px; font: 400 24px var(--sans); color: #585858; }
html.m .sx-add { width: 56px; height: 56px; line-height: 0; flex: none; }
html.m .sx-add:active { opacity: .6; }
html.m .sx-btns { display: flex; align-items: center; gap: 20px; flex: none; }
html.m .sx-btns button { min-width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; line-height: 0; }
html.m .sx-txt { font: 600 26px var(--sans); color: #2f6fed; }
html.m .sx-empty { padding: 26px 6px; font: italic 400 28px var(--serif); color: #585858; }
html.m .mcf { padding: 30px 36px 50px; display: flex; flex-direction: column; gap: 16px; }
html.m .mcf p { margin: 6px 0 14px; text-align: center; font: 400 31px/1.3 var(--serif); color: #222; }
html.m .mcf button { padding: 24px; border-radius: 18px; font: 600 32px var(--sans); }
html.m .mcf-ok { background: #c62d28; color: #fff; } html.m .mcf-no { background: #fff; border: 1px solid #d4d4d4; color: #2f6fed; }
html.m .msheet .lk { width: auto; padding: 22px 36px 50px; } html.m .msheet .lk-h { font: 700 34px var(--serif); margin-bottom: 8px; }
html.m .msheet .lk-l { max-height: none; gap: 0; } html.m .msheet .lk-l label { gap: 20px; font-size: 30px; padding: 20px 4px; border-bottom: 1px solid #e3e3e3; } html.m .msheet .lk-l input { width: 38px; height: 38px; min-height: 0; flex: none; } html.m .msheet .lk-l em { font-size: 24px; }
html.m .gf-lines { display: flex; flex-direction: column; gap: 18px; } html.m .gf-l { display: flex; flex-direction: column; gap: 8px; font: 600 26px var(--sans); color: #444; }
html.m .gf-t { border: 2px solid #c6c6c6; border-radius: 16px; padding: 14px 16px; font: 400 30px/1.3 var(--sans); background: #fff; color: #222; min-height: 110px; width: 100%; resize: none; }
html.m .gf-add { align-self: flex-start; border: 0; background: none; padding: 10px 0; font: 600 28px var(--sans); color: #2f6fed; }
html.m .gf-link { padding: 22px; border-radius: 18px; border: 2px dashed #b5b5b5; font: 600 28px var(--sans); color: #2f6fed; text-align: center; }

/* ---- Quarterly Goals ---- */
html.m .qg-list { display: flex; flex-direction: column; gap: 18px; }
html.m .qg-card { display: grid; grid-template-columns: 52px 1fr auto; column-gap: 24px; row-gap: 14px; align-items: center; padding: 26px 28px 24px; border: 2px solid #cbcbcb; border-radius: 26px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 8px rgba(0, 0, 0, .05); }
html.m .qg-chk { grid-column: 1; grid-row: 1 / 4; align-self: start; width: 52px; height: 52px; border-radius: 50%; border: 3px solid #9a9a9a; background: rgba(255, 255, 255, .5); }
html.m .qg-chk:active { background: rgba(60, 160, 80, .3); border-color: #3a9a4d; }
html.m .qg-name { grid-column: 2 / 4; font: 700 33px/1.2 var(--serif); color: #131313; }
html.m .qg-bar { grid-column: 2; height: 14px; border-radius: 7px; background: #dcdcdc; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2); overflow: hidden; }
html.m .qg-bar i { display: block; height: 100%; min-width: 10px; border-radius: 7px; background: #b9b9b9; }
html.m .qg-bar i.on { background: linear-gradient(180deg, #5aa8ff, #2f7fe8); }
html.m .qg-pct { grid-column: 3; font: 600 26px var(--sans); color: #555; min-width: 70px; text-align: right; }
html.m .qg-meta { grid-column: 2 / 4; display: flex; align-items: center; gap: 36px; font: 400 25px var(--sans); color: #585858; }
html.m .qg-meta b { color: #222; font-weight: 600; } html.m .qg-meta b.late { color: #c0392b; }
html.m .qg-late { margin-left: auto; font: 700 20px var(--sans); font-style: normal; letter-spacing: 1.5px; color: #d2283a; border: 2px solid #d2283a; border-radius: 6px; padding: 3px 12px; transform: rotate(-4deg); opacity: .85; }
html.m .qg-card.ach { row-gap: 8px; padding-top: 22px; padding-bottom: 20px; }
html.m .qg-star { grid-column: 1; grid-row: 1 / 3; align-self: start; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; line-height: 0; }
html.m .qg-star svg { width: 46px; height: 46px; }
html.m .qw-nav { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; }
html.m .qw-nav b { font: 600 29px var(--serif); color: #222; }
html.m .qw-nav button { width: 84px; height: 60px; display: flex; align-items: center; justify-content: center; line-height: 0; }
html.m .qw-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
html.m .qw-d { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 10px; border-radius: 22px; }
html.m .qw-d i { font: 400 22px var(--sans); font-style: normal; color: #707070; }
html.m .qw-d span { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 600 28px var(--sans); color: #000; }
html.m .qw-d.sun span, html.m .qw-d.sat span { color: #e4b13d; }
html.m .qw-d.today span { color: #c0392b; }
html.m .qw-d.sel span { background: #e8483a; color: #fff; text-decoration: underline; }
html.m .qw-d u { width: 9px; height: 9px; border-radius: 50%; background: transparent; }
html.m .qw-d u.on { background: #9a9a9a; }
html.m .qw-day { margin-top: 12px; }
html.m .qd-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 12px; }
html.m .qd-h b { font: 700 31px var(--serif); } html.m .qd-h button { font: 600 26px var(--sans); color: #2f6fed; padding: 10px 0 10px 20px; }
html.m .qd-ev { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; padding: 12px 18px; border-radius: 12px; background: rgba(150, 210, 110, .38); border: 1px solid rgba(120, 180, 90, .5); font: 400 26px var(--serif); color: #3f6a2c; }
html.m .qd-ev i { display: none; } html.m .qd-ev span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } html.m .qd-ev em { font: 400 22px var(--sans); font-style: normal; opacity: .8; }
html.m .qd-row { display: flex; align-items: center; gap: 18px; min-height: 86px; padding: 8px 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='2'%3E%3Crect width='4' height='2' fill='%23c6c6c6'/%3E%3C/svg%3E") repeat-x left bottom; transition: opacity .25s; }
html.m .qd-chk { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #9b9b9b; flex: none; }
html.m .qd-p { min-width: 56px; padding: 2px 8px; border-radius: 8px; text-align: center; background: #cfcfcf; color: #fff; font: 700 21px/26px var(--sans); flex: none; }
html.m .qd-row.over .qd-p { background: #c9372c; } html.m .qd-row.over .qd-t { color: #c0392b; }
html.m .qd-t { flex: 1; min-width: 0; font: 400 28px/1.2 var(--serif); color: #111; }
html.m .qd-row.pA .qd-t { font-weight: 700; }
html.m .qd-row em { font: 400 21px var(--sans); font-style: normal; flex: none; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.m .qd-row.done { opacity: .45; } html.m .qd-row.done .qd-t { text-decoration: line-through; } html.m .qd-row.done .qd-chk { background: #7d7c7a; }
html.m .qd-none { padding: 20px 6px; font: italic 400 26px var(--serif); color: #585858; }

/* ---- Notes / Personal Goals / editors ---- */
html.m .nb-search { display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 22px; margin: 6px 0 18px; border-radius: 18px; background: rgba(0, 0, 0, .07); }
html.m .nb-search span { line-height: 0; flex: none; } html.m .nb-search svg { width: 32px; height: 32px; }
html.m .nb-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 32px var(--sans); color: #111; -webkit-appearance: none; appearance: none; }
html.m .nb-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
html.m .nb-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
html.m .nb-tags button { padding: 8px 20px; border-radius: 30px; background: rgba(47, 111, 237, .1); color: #2f6fed; font: 600 24px var(--sans); } html.m .nb-tags em { font-style: normal; opacity: .7; }
html.m .nb-cat { margin: 28px 6px 6px; font: 700 23px var(--sans); letter-spacing: 1px; text-transform: uppercase; color: #585858; }
html.m .nb-fold { display: flex; align-items: center; width: 100%; height: 92px; padding: 0 8px; text-align: left; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='2'%3E%3Crect width='4' height='2' fill='%23c6c6c6'/%3E%3C/svg%3E") repeat-x left bottom; }
html.m .nb-fold:active { background-color: rgba(0, 0, 0, .05); }
html.m .nb-fi { width: 46px; line-height: 0; margin-right: 24px; flex: none; }
html.m .nb-fn { flex: 1; min-width: 0; font: 400 31px var(--serif); color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.m .nb-bd { font: 600 26px var(--sans); color: #585858; margin-right: 20px; } html.m .nb-ch { line-height: 0; }
html.m .nb-sort { margin: 0 6px 8px; font: 400 22px var(--sans); color: #585858; }
html.m .nb-row { position: relative; display: block; width: 100%; text-align: left; padding: 22px 8px 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='2'%3E%3Crect width='4' height='2' fill='%23c6c6c6'/%3E%3C/svg%3E") repeat-x left bottom; }
html.m .nb-row:active { background-color: rgba(0, 0, 0, .05); }
html.m .nb-t { display: block; padding-right: 190px; font: 700 32px/1.2 var(--serif); color: #131313; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.m .nb-d { position: absolute; right: 8px; top: 28px; font: 400 22px var(--sans); color: #585858; }
html.m .nb-p { display: block; margin-top: 8px; padding-right: 40px; font: 400 25px/1.3 var(--sans); color: #4a4a4a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.m .nb-done { position: absolute; right: 8px; bottom: 24px; width: 26px; height: 26px; border-radius: 50%; background: #4aa564; }
html.m .pc-h { font-size: 34px; }
html.m .pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
html.m .pc-card { position: relative; height: 310px; overflow: hidden; text-align: left; padding: 24px 24px 0; border-radius: 22px; background: rgba(255, 255, 255, .62); border: 2px solid #d4d0c6; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); display: flex; flex-direction: column; }
html.m .pc-card:active { transform: scale(.985); }
html.m .pc-t { flex: none; margin-bottom: 8px; font: 700 29px/1.2 var(--serif); color: #111; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.m .pc-body { flex: 1; min-height: 0; overflow: hidden; margin-bottom: 46px; font: 400 22px/1.32 var(--sans); color: #444; }
html.m .pc-body * { font-size: 22px !important; font-family: var(--sans) !important; line-height: 1.32 !important; margin: 0 !important; max-width: 100%; }
html.m .pc-body ul, html.m .pc-body ol { padding-left: 1.2em !important; }
html.m .pc-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(180deg, rgba(247, 247, 245, 0), rgba(247, 247, 245, .96) 70%); }
html.m .pc-d { position: absolute; left: 24px; bottom: 14px; z-index: 1; font: 400 21px var(--sans); color: #585858; }
html.m .pc-done { position: absolute; right: 18px; bottom: 16px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: #4aa564; }
html.m .nx { position: absolute; inset: 0; display: flex; flex-direction: column; }
html.m .nx-title { flex: none; width: 100%; padding: 10px 38px 4px; border: 0; outline: 0; background: none; font: 700 42px/1.2 var(--serif); color: #111; }
html.m .nx-title::placeholder { color: #b0b0b0; }
html.m .nx-sub { flex: none; display: flex; align-items: center; gap: 22px; padding: 4px 38px 10px; font: 400 24px var(--sans); color: #585858; }
html.m .nx-sub span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.m .nx-done { display: flex; align-items: center; gap: 12px; font: 600 24px var(--sans); color: #555; flex: none; }
html.m .nx-done i { width: 34px; height: 34px; border-radius: 9px; border: 2.5px solid #8f8f8f; flex: none; }
html.m .nx-done i.on { background: #2f6fed; border-color: #2f6fed; box-shadow: inset 0 0 0 5px #fff; }
html.m .nx-del { width: 48px; height: 48px; line-height: 0; flex: none; display: flex; align-items: center; justify-content: center; }
html.m .nx-count { flex: none; padding: 0 38px 10px; font: 400 21px var(--sans); color: #a0a0a0; }
html.m .nx-ed { flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid #d3d3d3; background: rgba(255, 255, 255, .32); }
html.m .nx-ed .me-body { padding-left: 24px; padding-right: 20px; }

/* ---- 7 Level Why ---- */
html.m .yw-mis { min-height: 330px; padding: 26px 30px; border: 2px solid #cbcbcb; border-radius: 26px; outline: 0; background: repeating-linear-gradient(transparent 0 49px, #dcdcdc 49px 50px) 0 0 / auto content-box content-box, rgba(255, 255, 255, .55) padding-box; font: 400 31px/50px var(--serif); color: #111; white-space: pre-wrap; word-wrap: break-word; caret-color: #c0392b; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 8px rgba(0, 0, 0, .05); }
html.m .yw-mis:empty::before, html.m .yw-vt:empty::before { content: attr(data-ph); color: #6c6c6c; }
html.m .yw-saved { margin: 10px 10px 0; font: 400 21px var(--sans); color: #606060; min-height: 26px; }
html.m .yw-v { display: flex; align-items: center; gap: 22px; padding: 20px 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='2'%3E%3Crect width='4' height='2' fill='%23c6c6c6'/%3E%3C/svg%3E") repeat-x left bottom; }
html.m .yw-b { width: 16px; height: 16px; border-radius: 50%; background: #c0392b; flex: none; }
html.m .yw-vt { flex: 1; min-width: 0; min-height: 44px; outline: 0; font: 400 33px/1.3 var(--serif); color: #111; word-wrap: break-word; }
html.m .yw-v button { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; line-height: 0; flex: none; }

/* ---- Journal ---- */
html.m .jn-new { font: 600 28px var(--sans); color: #2f6fed; padding: 10px 0 10px 20px; }
html.m .jn-car { display: flex; gap: 32px; overflow-x: auto; margin: 0 -34px; padding: 10px 34px 26px; scroll-snap-type: x mandatory; scroll-padding: 0 34px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
html.m .jn-car::-webkit-scrollbar { display: none; }
html.m .jn-b { flex: none; width: 210px; scroll-snap-align: start; text-align: center; }
html.m .jn-cv { position: relative; display: block; width: 210px; height: 284px; border-radius: 8px 20px 20px 8px; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18), 0 10px 18px rgba(0, 0, 0, .28); }
html.m .jn-cv::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 24px; border-radius: 8px 0 0 8px; background: linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .04)); }
html.m .jn-cv::after { content: ''; position: absolute; left: 62px; right: 62px; top: 52px; height: 62px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .6); }
html.m .jn-cv i { position: absolute; right: 34px; top: 0; bottom: 0; width: 11px; background: rgba(0, 0, 0, .3); }
html.m .jn-b.sel .jn-cv { box-shadow: 0 0 0 5px #f3f3f3, 0 0 0 9px #2f6fed, 0 10px 18px rgba(0, 0, 0, .28); }
html.m .jn-b b { display: block; margin-top: 22px; font: 700 28px/1.2 var(--serif); color: #131313; }
html.m .jn-b em { display: block; margin-top: 4px; font: 400 22px var(--sans); font-style: normal; color: #585858; }
html.m .jn-seg { display: flex; padding: 4px; border-radius: 15px; background: rgba(0, 0, 0, .08); }
html.m .jn-seg button { padding: 10px 28px; border-radius: 11px; font: 600 24px var(--sans); color: #555; }
html.m .jn-seg button.on { background: #fff; color: #111; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); }
html.m .jn-e { position: relative; display: block; width: 100%; text-align: left; padding: 22px 8px 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='2'%3E%3Crect width='4' height='2' fill='%23c6c6c6'/%3E%3C/svg%3E") repeat-x left bottom; }
html.m .jn-e b { display: block; padding-right: 200px; font: 700 31px/1.2 var(--serif); color: #131313; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.m .jn-e em { position: absolute; right: 8px; top: 28px; font: 400 22px var(--sans); font-style: normal; color: #585858; }
html.m .jn-e span { display: block; margin-top: 8px; font: 400 25px/1.3 var(--sans); color: #4a4a4a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.m .jn-add { display: block; width: 100%; margin-top: 22px; padding: 24px; border-radius: 20px; border: 2px dashed #b5b5b5; font: 600 28px var(--sans); color: #2f6fed; text-align: center; }
html.m .jn-ch { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
html.m .jn-ch b { font: 600 30px var(--serif); } html.m .jn-ch button { width: 84px; height: 60px; display: flex; align-items: center; justify-content: center; line-height: 0; }
html.m .jn-cw { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font: 400 22px var(--sans); color: #707070; }
html.m .jn-cg { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 76px; }
html.m .jn-cg button { position: relative; width: 66px; height: 66px; margin: 5px auto; border-radius: 50%; font: 600 28px var(--sans); color: #000; }
html.m .jn-cg button.has::after { content: ''; position: absolute; left: 50%; bottom: 7px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #2f6fed; }
html.m .jn-cg button.sel { background: #e8483a; color: #fff; text-decoration: underline; } html.m .jn-cg button.sel.has::after { background: #fff; }
html.m .jn-day { margin-top: 12px; } html.m .jn-dl { margin: 10px 4px 4px; font: 700 29px var(--serif); }
html.m .jn-sd { flex: none; padding: 8px 38px 0; font: 400 22px var(--sans); color: #606060; }

/* ---- New Task / Edit Task screen (copy of the native task sheet; coordinates are paper-relative design px) ---- */
html.m .ntl { position: absolute; inset: 0; z-index: 70; transform: translateY(104%); transition: transform .34s cubic-bezier(.2, .85, .25, 1); pointer-events: none; font-family: var(--sans); }
html.m .ntl.on { transform: none; pointer-events: auto; }
html.m .ntb { position: absolute; left: 3px; right: 3px; top: var(--sat, 116px); bottom: 4px; padding: 12.8px 15px 11px 15px; border-radius: 62px;
  background: var(--leather-tex-soft), linear-gradient(180deg, #60402a 0%, #523522 45%, #3b2316 100%);
  box-shadow: 0 0 0 1px #000, inset 0 3px 1px 0 rgba(205, 165, 125, .32), inset 0 0 0 1.5px rgba(30, 14, 6, .6), inset 3px 0 1px rgba(170, 120, 80, .22), inset -3px -3px 3px rgba(0, 0, 0, .35); }
html.m .nt { position: relative; width: 100%; height: 100%; border-radius: 49px; overflow: hidden; background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 30%, #e9e9e9 62%, #e2e2e2 100%);
  box-shadow: 0 0 0 1.5px rgba(61, 66, 71, .9), 0 0 5px 6px rgba(30, 12, 4, .4), inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
html.m .nt::before { content: ''; position: absolute; inset: 0; background: var(--paper-tex); opacity: .85; pointer-events: none; }
html.m .nt-sc { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
html.m .nt-sc::-webkit-scrollbar { display: none; }
html.m .nt-in { position: relative; min-height: 100%; height: 1890px; }
html.m .nt-x { position: absolute; left: 8px; top: 8px; width: 76px; height: 76px; padding: 17.1px 22px 22px 18.3px; line-height: 0; z-index: 3; }
html.m .nt-x:active { opacity: .6; }
html.m .nt-title { position: absolute; left: 14.9px; right: 20px; top: 78px; height: 60px; padding: 0; border: 0; outline: 0; background: none; border-radius: 0; font: 400 46px/60px var(--sans); color: #000; caret-color: #2f6fed; letter-spacing: 0; }
html.m .nt-title::placeholder { color: #000; opacity: 1; }
html.m .nt-title:focus::placeholder { color: #b5b5b5; }
html.m .nt-r { position: absolute; left: 0; right: 0; height: 62px; line-height: 62px; font: 400 25.3px/62px 'Gelasio', 'Georgia', 'Times New Roman', serif; font-variant-numeric: lining-nums; color: #666; -webkit-tap-highlight-color: transparent; }
html.m .nt-r:active { background: rgba(0, 0, 0, .035); }
html.m .nt-r.dis { opacity: .55; }
html.m .nt-r label { position: absolute; left: 30px; top: 2.7px; white-space: nowrap; pointer-events: none; }
html.m .nt-v { position: absolute; left: 350px; top: 2.7px; right: 14px; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
html.m .nt-st { left: 403px; }
html.m .nt-bl { color: #4a8ff1; }
html.m .nt-em { font-size: 28px; margin-right: 9px; vertical-align: -1px; font-family: 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
html.m .nt-ov { position: absolute; left: 330px; top: 0; right: 0; width: calc(100% - 330px); height: 62px; opacity: 0; font-size: 32px; z-index: 2; border: 0; background: none; -webkit-appearance: none; appearance: none; }
html.m .nt-ov::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
html.m .nt-clr { position: absolute; right: 24px; top: 9px; width: 44px; height: 44px; display: none; align-items: center; justify-content: center; line-height: 0; z-index: 3; border-radius: 50%; }
html.m .nt-r.has .nt-clr { display: flex; }
html.m .nt-tg { position: absolute; left: 350.6px; top: 11.4px; width: 91.6px; height: 45px; border-radius: 23px; background: #cccccc; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1.5px rgba(255, 255, 255, .85); transition: background .2s; line-height: 0; }
html.m .nt-tg i { position: absolute; left: 1.5px; top: 1.5px; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(180deg, #fff, #ececec); box-shadow: 0 2px 4px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .8); transition: transform .2s; }
html.m .nt-tg .nt-gx { position: absolute; right: 12px; top: 10px; width: 24px; height: 24px; }
html.m .nt-tg .nt-gc { position: absolute; left: 11px; top: 11px; width: 26px; height: 22px; opacity: 0; }
html.m .nt-tg.on { background: #34c759; }
html.m .nt-tg.on i { transform: translateX(46px); }
html.m .nt-tg.on .nt-gx { opacity: 0; } html.m .nt-tg.on .nt-gc { opacity: 1; }
html.m .nt-r[data-r=status] { top: 227.2px; } html.m .nt-r[data-r=priority] { top: 289.2px; } html.m .nt-r[data-r=category] { top: 435.5px; } html.m .nt-r[data-r=repeat] { top: 497.1px; }
html.m .nt-r[data-r=date] { top: 644.2px; } html.m .nt-r[data-r=time] { top: 706.4px; } html.m .nt-r[data-r=sdate] { top: 768.7px; } html.m .nt-r[data-r=stime] { top: 830.9px; }
html.m .nt-r[data-r=alarm] { top: 892.6px; } html.m .nt-r[data-r=live] { top: 955.4px; }
html.m .nt-r[data-r=role] { top: 1101.2px; } html.m .nt-r[data-r=goal] { top: 1163.5px; } html.m .nt-r[data-r=meeting] { top: 1225.8px; } html.m .nt-r[data-r=share] { top: 1372.3px; }
html.m .nt-del { position: absolute; left: 550.8px; top: 1812px; width: 135px; height: 53px; border-radius: 14px; background: #f1e1df; color: #c92a1c; font: 400 29.6px/51px var(--sans); text-align: center; }
html.m .nt-del:active { background: #ebcfcb; }
html.m .nt-nb { position: absolute; left: 0; right: 0; top: 1440px; height: 340px; font: 400 25.3px/62px 'Gelasio', 'Georgia', 'Times New Roman', serif; color: #666; }
html.m .nt-nb label { position: absolute; left: 30px; top: 2.7px; white-space: nowrap; pointer-events: none; }
html.m .nt-note { position: absolute; left: 30px; right: 30px; top: 66px; height: 266px; padding: 12px 16px; border: 1px solid #d4d4d4; border-radius: 16px; outline: 0; background: rgba(255, 255, 255, .75); resize: none; font: 400 30px/1.35 var(--sans); color: #000; caret-color: #2f6fed; white-space: pre-wrap; overflow-y: auto; -webkit-overflow-scrolling: touch; }
html.m .nt-note::placeholder { color: #b5b5b5; }

/* pickers */
html.m .ntp { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
html.m .ntp.on { pointer-events: auto; }
html.m .ntp-bk { position: absolute; inset: 0; background: rgba(0, 0, 0, .0); transition: background .25s; }
html.m .ntp.on .ntp-bk { background: rgba(0, 0, 0, .42); }
html.m .ntp-sh { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82%; display: flex; flex-direction: column; border-radius: 44px 44px 0 0; background: var(--paper-tex), linear-gradient(180deg, #f6f6f6, #e6e6e6); box-shadow: 0 -8px 40px rgba(0, 0, 0, .45); transform: translateY(104%); transition: transform .26s cubic-bezier(.2, .85, .25, 1); color: #111; }
html.m .ntp.on .ntp-sh { transform: none; }
html.m .ntp-h { flex: none; position: relative; height: 100px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #d6d6d6; }
html.m .ntp-h b { font: 700 33px var(--serif); }
html.m .ntp-done { position: absolute; right: 12px; top: 0; height: 100px; padding: 0 28px; font: 600 31px var(--sans); color: #2f6fed; }
html.m .ntp-b { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 44px; }
html.m .ntp-l button { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 96px; padding: 0 40px; text-align: left; font: 400 33px var(--serif); color: #111; border-bottom: 1px solid #dedede; }
html.m .ntp-l button:active { background: rgba(0, 0, 0, .05); }
html.m .ntp-l button.on { color: #2f6fed; }
html.m .ntp-l button i { width: 30px; height: 18px; border-left: 5px solid #2f6fed; border-bottom: 5px solid #2f6fed; transform: rotate(-45deg) translate(2px, -4px); flex: none; }
html.m .ntp-none { margin: 0; padding: 70px 40px; text-align: center; font: italic 400 31px var(--serif); color: #585858; }
html.m .ntp-pri { padding: 34px 40px 10px; display: flex; flex-direction: column; gap: 30px; align-items: center; }
html.m .ntp-lt { display: flex; gap: 22px; }
html.m .ntp-lt button { width: 150px; height: 100px; border-radius: 22px; border: 2px solid #cfcfcf; background: #fff; font: 700 42px var(--sans); color: #333; }
html.m .ntp-lt button.on { background: #2f6fed; border-color: #2f6fed; color: #fff; }
html.m .ntp-sp { display: flex; align-items: center; gap: 30px; }
html.m .ntp-sp button { width: 110px; height: 100px; border-radius: 22px; border: 2px solid #cfcfcf; background: #fff; font: 400 54px var(--sans); color: #333; line-height: 1; }
html.m .ntp-n { min-width: 200px; text-align: center; font: 400 64px var(--serif); }
html.m .ntp-auto { font: 600 28px var(--sans); color: #2f6fed; padding: 14px 20px; }
html.m .ntp-rp { padding: 30px 40px 10px; display: flex; flex-direction: column; gap: 28px; }
html.m .ntp-seg { display: flex; padding: 5px; border-radius: 18px; background: rgba(0, 0, 0, .09); }
html.m .ntp-seg button { flex: 1; height: 76px; border-radius: 14px; font: 600 26px var(--sans); color: #555; }
html.m .ntp-seg button.on { background: #fff; color: #111; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
html.m .ntp-seg.s2 { width: 340px; }
html.m .ntp-seg.s3 { flex: 1; min-width: 0; }
html.m .ntp-seg.s3 button { font-size: 24px; padding: 0 6px; }
html.m .ntp-mo { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
html.m .ntp-mo button, html.m .ntp-nth button { height: 74px; border-radius: 16px; border: 2px solid #cfcfcf; background: #fff; font: 600 26px var(--sans); color: #444; }
html.m .ntp-mo button.on, html.m .ntp-nth button.on { background: #2f6fed; border-color: #2f6fed; color: #fff; }
html.m .ntp-nth { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
html.m .ntp-sum { margin: 0; text-align: center; font: italic 400 28px var(--serif); color: #6b6b6b; }
html.m .ntp-iv, html.m .ntp-en { display: flex; align-items: center; gap: 22px; font: 400 31px var(--serif); justify-content: flex-start; }
html.m .ntp-iv button { width: 90px; height: 84px; border-radius: 18px; border: 2px solid #cfcfcf; background: #fff; font: 400 46px var(--sans); line-height: 1; color: #333; }
html.m .ntp-iv b { min-width: 60px; text-align: center; font: 600 40px var(--sans); }
html.m .ntp-dw { display: flex; gap: 12px; justify-content: space-between; }
html.m .ntp-dw button { width: 78px; height: 78px; border-radius: 50%; border: 2px solid #cfcfcf; background: #fff; font: 600 28px var(--sans); color: #444; }
html.m .ntp-dw button.on { background: #2f6fed; border-color: #2f6fed; color: #fff; }
html.m .ntp-ed { height: 80px; padding: 0 20px; border-radius: 16px; border: 1px solid #d4d4d4; background: #fff; font-size: 32px; color: #222; }
html.m .ntp-cf { padding: 26px 40px 30px; display: flex; flex-direction: column; gap: 16px; }
html.m .ntp-cf button { height: 96px; border-radius: 20px; font: 600 32px var(--sans); }
html.m .ntp-red { background: #c92a1c; color: #fff; } html.m .ntp-no { background: #fff; border: 1px solid #d4d4d4; color: #2f6fed; }

/* ---- binder index tabs down the right edge (tap to flip to that section) ---- */
html.m .mtabs { position: absolute; right: 0; top: calc(var(--sat, 116px) + 112px); width: 44px; z-index: 50; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
html.m .mtabs button { position: relative; width: 34px; margin-left: 10px; border-radius: 0 16px 16px 0; pointer-events: auto; color: #fff; box-shadow: 1px 2px 4px rgba(0, 0, 0, .45), inset 0 8px 8px rgba(255, 255, 255, .22); transition: width .2s, margin .2s; display: flex; align-items: center; justify-content: center; }
html.m .mtabs button.on { width: 44px; margin-left: 0; box-shadow: 1px 2px 6px rgba(0, 0, 0, .6), inset 0 8px 8px rgba(255, 255, 255, .3); }
html.m .mtabs button span { writing-mode: vertical-rl; font: 600 20px/1.1 var(--sans); letter-spacing: .2px; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); white-space: nowrap; }
html.m.kb .mtabs, html.m #m.kb .mtabs { display: none; }
html.m .scr.in-r { animation: mslideR .3s cubic-bezier(.2, .85, .25, 1); }
html.m .scr.in-l { animation: mslideL .3s cubic-bezier(.2, .85, .25, 1); }
@keyframes mslideR { from { transform: translateX(40%); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes mslideL { from { transform: translateX(-40%); opacity: .2; } to { transform: none; opacity: 1; } }

/* ---- event editor sheet ---- */
html.m .msheet .ee textarea { flex: 1; min-width: 0; font: 400 32px var(--sans); padding: 14px 18px; min-height: 150px; border-radius: 16px; border: 1px solid #d4d4d4; background: #fff; color: #222; }
html.m .msheet .ee .ee-cal { font-size: 30px; gap: 14px; } html.m .msheet .ee .ee-cal i { width: 26px; height: 26px; }
html.m .msheet .ee .ee-t { flex: 0 0 230px; } html.m .msheet .ee input[type=checkbox] { flex: none; width: 52px; height: 52px; min-height: 0; padding: 0; }
html.m .msheet .ee .ee-guests { font-size: 28px; line-height: 1.6; } html.m .msheet .ee .ee-note { font-size: 24px; } html.m .msheet .ee .ee-link { font-size: 28px; color: #2f6fed; }
html.m .msheet .ee .te-del { background: #fde7e6; color: #c62d28; }

/* paint under the home-indicator strip even if the webview viewport is shorter than the screen */
html.m { background-color: #4a2514; }
html.m body::after { content: ''; position: fixed; left: 0; right: 0; bottom: -200px; height: 200px; background: #4a2514; z-index: -1; pointer-events: none; }

/* weather under the big date */
html.m .mwx { position: absolute; left: 14px; width: 214px; top: 356px; text-align: center; display: flex; flex-direction: column; align-items: center; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.m .mwx .wx-r { display: flex; align-items: center; gap: 8px; height: 46px; }
html.m .mwx .wx-i { height: 44px; line-height: 0; }
html.m .mwx .wx-t { font: 700 40px/46px var(--sans); color: #1b1b1b; }
html.m .mwx .wx-d { font: 500 21px/26px var(--sans); color: #555; white-space: pre; }
html.m .md.col .mwx { display: none; }

/* narrow (side-by-side) events: title runs top-to-bottom so it is readable */
html.m .mev.vt { padding: 4px 2px; }
html.m .mev.vt span { writing-mode: vertical-rl; font-size: 20px; line-height: 24px; max-width: 100%; }
html.m .mev span { will-change: transform; }

/* the strip below the visible page (home-indicator area) is painted leather brown so it reads as the bottom of the binder */
html.m { background: #4a2514; }

/* iPad (wide canvas): extra width goes to the task column; calendar + timeline shift right, same size */
html.m.wide .mh-tri.l { left: calc(188px + var(--a)); } html.m.wide .mh-tri.r { left: calc(590px + var(--a)); }
html.m.wide .mh-title { left: calc(214px + var(--a)); }
html.m.wide .mh-search { left: calc(636px + var(--a)); }
html.m.wide .mwk, html.m.wide .mgrid { left: calc(184px + var(--a)); }
html.m.wide .mdn, html.m.wide .mdw { right: calc(516px + var(--a)); }
html.m.wide .mtl { left: calc(430px + var(--a)); }
html.m.wide .mtk-list { width: calc(422px + var(--a)); }
html.m.wide .mtk-exp { left: calc(310px + var(--a)); } html.m.wide .mtk-add { left: calc(354px + var(--a)); }
html.m.wide .mb-e { left: calc(360px + var(--a)); }

/* full-screen month calendar */
html.m .mh-tt { position: relative; display: inline-block; } html.m .mh-exp { position: absolute; left: 100%; margin-left: 12px; top: 0; width: 30px; height: 30px; line-height: 0; } html.m .mh-exp svg { width: 28px; height: 28px; }
html.m .mmo { position: absolute; left: 4px; right: 4px; top: var(--sat, 116px); bottom: 4px; z-index: 80; border-radius: 52px; padding: 0 0 6px; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, #f8f8f8, #e6e6e6); box-shadow: 0 0 0 4px #7a4a2c, 0 0 0 6px #3b1d0e; }
html.m .mmh { display: flex; align-items: center; gap: 10px; padding: 26px 26px 8px; }
html.m .mmh button { font: 600 26px var(--sans); color: #585858; padding: 10px 14px; }
html.m .mmt { flex: 1; text-align: center; font: 400 34px/40px var(--serif); color: #131313; }
html.m .mmh .mmx { color: #fff; background: #2f6fed; border-radius: 22px; padding: 10px 24px; margin-left: 6px; }
html.m .mmw { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font: 500 21px/30px var(--sans); color: #707070; padding: 0 14px; }
html.m .mmg { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); margin: 0 14px; border-top: 1px solid #cfcfcf; min-height: 0; }
html.m .mmc { border-right: 1px solid #d6d6d6; border-bottom: 1px solid #d6d6d6; padding: 4px 3px 2px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html.m .mmc:nth-child(7n+1) { border-left: 1px solid #d6d6d6; }
html.m .mmc b { font: 600 22px/26px var(--sans); color: #111; align-self: flex-start; padding: 0 6px; border-radius: 14px; }
html.m .mmc:nth-child(7n+1) b, html.m .mmc:nth-child(7n) b { color: #d99a17; }
html.m .mmc.oth b { color: #a8a8a8; }
html.m .mmc.today b { background: #e94e3c; color: #fff; }
html.m .mmc.sel { background: rgba(47, 111, 237, .08); }
html.m .mmv { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: 400 15px/18px var(--sans); font-style: normal; color: #1d1d1d; background: color-mix(in srgb, var(--c) 30%, #fff); border-left: 4px solid var(--c); padding: 1px 3px; border-radius: 3px; overflow: hidden; word-break: break-word; flex: none; }
html.m .mmv.ad { background: color-mix(in srgb, var(--c) 55%, #fff); }
html.m .mmc em { font: 500 15px/18px var(--sans); color: #666; font-style: normal; padding-left: 4px; }
html.m .mjoin { position: absolute; right: 3px; top: 3px; width: 28px; height: 28px; border-radius: 50%; background: #2f6fed; color: #fff !important; font-size: 13px; line-height: 28px; text-align: center; text-decoration: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); z-index: 3; }
html.m .mev.vt .mjoin { right: 50%; margin-right: -14px; top: auto; bottom: 3px; }
html.m .msheet .ee .ee-join { display: block; margin: 4px 0 14px; padding: 20px; border-radius: 18px; background: #2f6fed; color: #fff; font: 600 32px var(--sans); text-align: center; text-decoration: none; }
html.m .msheet .ee .ee-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; } html.m .msheet .ee .ee-links a { font-size: 26px; color: #2f6fed; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

html.m .mtl-exp { position: absolute; right: 8px; bottom: 10px; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .88); box-shadow: 0 1px 6px rgba(0, 0, 0, .35); line-height: 0; z-index: 4; display: flex; align-items: center; justify-content: center; }
html.m .mtl-exp svg { width: 28px; height: 28px; }
html.m .mdo .mdo-ads { padding: 0 20px 8px; display: flex; flex-direction: column; gap: 4px; }
html.m .mdo .mdo-ad { font: 400 24px/32px var(--serif); padding: 2px 12px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.m .mdo .mdo-sc { flex: 1; overflow-y: scroll; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 18px 0 0; }
html.m .mdo .mdo-sc::-webkit-scrollbar { display: none; }
html.m .mdo .mdo-in { position: relative; margin-left: 110px; margin-right: 8px; }
html.m .mdo .mdo-hl { position: absolute; left: -12px; right: 0; border-top: 1px solid #c5c5c5; }
html.m .mdo .mdo-hn { position: absolute; left: -110px; width: 92px; text-align: right; font: 400 22px/24px var(--serif); color: #555; }
html.m .mdo .mshade { position: absolute; left: 0; right: 0; background: rgba(0, 0, 0, .07); }
html.m .mdo .mdo-ev { position: absolute; overflow: hidden; border-radius: 6px; padding: 3px 10px; font: 400 24px/28px var(--serif); border-left: 5px solid rgba(0, 0, 0, .25); z-index: 1; }
html.m .mdo .mdo-ev b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 36px; }
html.m .mdo .mdo-ev em { display: block; font: 400 20px/24px var(--sans); font-style: normal; opacity: .75; white-space: nowrap; }
html.m .mdo .mnow { position: absolute; left: -12px; right: 0; border-top: 3px solid #e0342b; z-index: 2; }
html.m .mdo .mnow i { position: absolute; left: -6px; top: -9px; width: 14px; height: 14px; border-radius: 50%; background: #e0342b; }
html.m .mdo .mdo-ev .mjoin { width: 34px; height: 34px; line-height: 34px; font-size: 15px; }
html.m .mdo .mmt { flex: 1; text-align: center; }
html.m .mdo .mdo-ev b.wr { display: -webkit-box; -webkit-box-orient: vertical; white-space: normal; word-break: break-word; font-size: 22px; line-height: 26px; padding-right: 0; }
html.m .mdo .mdo-ev:has(.mjoin) b { padding-right: 38px; }
html.m .mdo .mdo-ev.nr b.wr { font-size: 19px; line-height: 22px; } html.m .mdo .mdo-ev.nr { padding: 3px 6px; }

html.m .ro-note { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 16px 28px; background: #fff3cf; color: #7a5a00; font: 600 24px/32px var(--sans); text-align: center; }

/* hourly weather card (phone sheet) */
html.m .wxcard .wxc { font-size: 25px; padding: 4px 40px 40px; }
html.m .wxcard .wxc-list { max-height: 560px; }

/* brief card on the phone sheet */
html.m .brief .bf, html.m .msheet.brief .bf { font-size: 25px; }
html.m .msheet.brief .bf-body { padding: 18px 36px 50px; max-height: none; overflow: visible; }
html.m .msheet.brief .bf-tabs { padding: 4px 24px 0; background: transparent; border: 0; gap: 10px; }
html.m .msheet.brief .bf-tab { font-size: 24px; padding: 12px 22px; border-radius: 30px; background: #e9e9e9; }
html.m .msheet.brief .bf-tab.on { background: #68bde2; color: #fff; box-shadow: none; }
html.m .msheet.brief .bf-ic { width: 120px; height: 120px; border-radius: 28px; padding: 20px; }
html.m .msheet.brief .bf-apps { gap: 30px 14px; }
html.m .msheet.brief .bf-ring { width: 96px; height: 96px; } html.m .msheet.brief .bf-ring::before { inset: 11px; }
html.m .msheet.brief .bf-g { grid-template-columns: 1fr 160px 3em; }
html.m .mpanel > * { flex: none; }
html.m .mpanel button { padding-top: 22px; padding-bottom: 22px; }

/* other apps (Money / Tesla / Calendar) filling the phone page */
html.m .sb.appfm { padding: 0; overflow: hidden; }
html.m .sb.appfm .appf-fr { position: absolute; inset: 0; width: calc(100% - 44px); height: 100%; border: 0; background: #fff; }
html.m .sb.appfm .appf-load { top: 40%; left: 0; width: calc(100% - 44px); }
html.m .mtabs button span { font-size: calc(17px * var(--tk, 1)); }
html.m .mpanel .mp-link { display: block; text-align: left; font: 400 33px/1.2 var(--serif); padding: 22px 44px; color: #1a1a1a; border-top: 1px solid rgba(0, 0, 0, .08); text-decoration: none; }
html.m .pop.inbx, html.m .sheet .inbx-in { max-height: none; }
html.m .msheet .inbx { zoom: 2; border-radius: 14px; } /* the phone draws at half scale: this puts the card back at its real size */
html.m .msheet .inbx textarea { font-size: 16px; min-height: 92px; }
html.m .msheet .inbx .xclose { font-size: 16px; padding: 6px 10px; }

/* ---- events drawn the Calendar app's way (phone) ---- */
html.m .mev.mcx { border-radius: 10px; padding: 3px 10px 3px 14px; background: rgba(var(--cr), .22); color: var(--ct); box-shadow: inset 6px 0 0 var(--c); font: 400 22px/26px var(--sans, -apple-system, system-ui, sans-serif); }
html.m .mev.mcx span { white-space: normal; }
html.m .mev.mcx b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.m .mev.mcx i { display: block; font-style: normal; font-weight: 600; font-size: 20px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.m .mev.mcx.short span { display: flex; gap: 10px; align-items: baseline; white-space: nowrap; }
html.m .mev.mcx.na { background-image: repeating-linear-gradient(135deg, rgba(var(--cr), 0) 0 10px, rgba(var(--cr), .16) 10px 20px); }
html.m .mev.mcx.dec { opacity: .5; text-decoration: line-through; }
html.m .mad.mcx { background: rgba(var(--cr), .26); color: var(--ct); box-shadow: inset 6px 0 0 var(--c); font-weight: 600; padding-left: 14px; }

/* ---- sharper text (phone) ---- */
html.m .mhn { color: #333; font-weight: 600; }
html.m .mev.mcx { background: rgba(var(--cr), .30); }
html.m .mev.mcx b { font-weight: 800; color: #0d0d0d; }
html.m .mev.mcx i { font-weight: 700; opacity: 1; }
html.m .msheet .ah { zoom: 1.95; }
html.m .msheet .ah .ah-l { width: 86px; }
/* ---- tabs: bigger touch area, instant response ---- */
html.m #m { touch-action: manipulation; }
html.m .mtabs button { touch-action: manipulation; -webkit-touch-callout: none; }
html.m .mtabs button::before { content: ''; position: absolute; left: -30px; right: 0; top: -3px; bottom: -3px; }
html.m .mtabs button.on::before { left: -20px; }
/* ---- Coming up inside the Daily Notes sheet ---- */
html.m .mn-ah { flex: none; padding: 12px 34px 8px; border-bottom: 1px solid #e0e0e0; max-height: 44%; overflow-y: auto; -webkit-overflow-scrolling: touch; }
html.m .mn-ah .ah-hd { zoom: 1.95; }
html.m .mn-ah .ah-d { padding: 7px 4px; }
html.m.kb .mn-ah .ah, html.m #m.kb .mn-ah .ah { display: none; }

html.m .mev.mcx[data-edit="1"] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
html.m .mev.mcx.dragging { z-index: 60 !important; box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 6px 0 0 var(--c); transition: none; overflow: visible; }
html.m .mev.mcx.dragging::after { content: attr(data-mv); position: absolute; right: 8px; top: -34px; background: #1c1c1e; color: #fff; font: 600 20px/1 system-ui, sans-serif; padding: 6px 12px; border-radius: 10px; white-space: nowrap; pointer-events: none; }
html.m .ntp-dw { flex-wrap: wrap; } html.m .ntp-dw button[data-nd="weekday"], html.m .ntp-dw button[data-nd="day"] { width: auto; padding: 0 22px; border-radius: 40px; }

/* nov21: hold the bottom edge of an event, then slide to make it longer or shorter */
html.m .mev.mcx[data-edit="1"] { -webkit-touch-callout: none; touch-action: pan-y; }
html.m .mev.mcx .rs { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; touch-action: none; }
html.m .mev.mcx .rs::after { content: ''; position: absolute; left: 50%; bottom: 8px; width: 56px; height: 6px; margin-left: -28px; border-radius: 3px; background: currentColor; opacity: .4; }
html.m .mev.mcx.dragging { z-index: 60 !important; box-shadow: 0 12px 36px rgba(0,0,0,.32), inset 6px 0 0 var(--c); opacity: .96; overflow: visible; }
html.m .mev.mcx.dragging::after { content: attr(data-mv); position: absolute; right: 8px; top: -34px; background: #1c1c1e; color: #fff; font: 600 22px/1 var(--sans); padding: 7px 12px; border-radius: 10px; white-space: nowrap; pointer-events: none; }

/* chk-hit: the little completion circles get a big invisible tap zone so a tap near them completes the task instead of opening it */
html.m .mchk, html.m .qd-chk, html.m .qg-chk, html.m .mpill { cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.m .mchk::after { content: ""; position: absolute; left: -1px; top: -13px; width: 51px; height: 84px; border-radius: 0; }
html.m .mchk:active { background: rgba(125, 124, 122, .45); transform: scale(.92); }
html.m .qd-chk { position: relative; }
html.m .qd-chk::after { content: ""; position: absolute; inset: -22px -14px -22px -14px; }
html.m .qd-chk:active { background: rgba(125, 124, 122, .45); }
html.m .qg-chk { position: relative; }
html.m .qg-chk::after { content: ""; position: absolute; inset: -12px; }

/* btn-hit: invisible tap zones so small phone buttons are easy to hit with a thumb (nothing changes visually) */
html.m .mh-burger::after, html.m .mh-search::after, html.m .mtl-exp::after, html.m .mtk-exp::after, html.m .mtk-add::after, html.m .mb-q::after, html.m .mb-c::after, html.m .mb-e::after { content: ""; position: absolute; inset: -16px; }
html.m .mh-tri::after { content: ""; position: absolute; inset: -18px -14px; }
html.m .mh-exp::after { content: ""; position: absolute; inset: -16px -10px; }
html.m .mb-n::after { content: ""; position: absolute; inset: -20px -8px; }
html.m .mpill::after { content: ""; position: absolute; inset: -20px -4px -20px -2px; }

/* layered-overlap: overlapping events sit on top of the main one; text is always horizontal */
html.m .mev.vt span, html.m .mev span { writing-mode: horizontal-tb !important; }
html.m .mev { box-sizing: border-box; }
html.m .mev.mcx.ovl { background: linear-gradient(rgba(var(--cr), .32), rgba(var(--cr), .32)), #fff; box-shadow: inset 6px 0 0 var(--c), 0 0 0 2px #fff, 0 3px 10px rgba(0,0,0,.22); }
html.m .mev.mcx.under { background: rgba(var(--cr), .20); }
html.m .mev.ovl:not(.mcx) { box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(0,0,0,.2); }
[data-theme="dark"] html.m .mev.mcx.ovl, html.m[data-theme="dark"] .mev.mcx.ovl { background: linear-gradient(rgba(var(--cr), .38), rgba(var(--cr), .38)), #2c2c2e; box-shadow: inset 6px 0 0 var(--c), 0 0 0 2px #1c1c1e, 0 3px 10px rgba(0,0,0,.5); }
html.m .mdo .mdo-ev { box-sizing: border-box; }
html.m .mdo .mdo-ev.ovl { box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(0,0,0,.2); }
/* month sheet: same look as the Calendar app (solid-tinted bars for all-day, dot + title for timed) */
html.m .mmv { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; background: none; border-left: 0; padding: 0 3px; border-radius: 4px; font-weight: 600; }
html.m .mmv.ad { background: rgba(var(--cr), .26); color: var(--ct); box-shadow: inset 4px 0 0 var(--c); padding-left: 8px; }
html.m .mmv.tm { color: #1d1d1d; }
html.m .mmv.tm u { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 5px; vertical-align: 0; text-decoration: none; }

/* ===== Nov 23 2026 fixes ===== */
/* full-day button: moved clear of the side tabs (its middle used to sit under the Production tab) */
html.m .mtl-exp { right: 34px; }
html.m .mtl-exp::after { inset: -16px -6px -16px -16px; }
/* check circle: a finger-size target (from the screen edge to past the circle, full row height); the priority label starts where it ends */
html.m .mtk-list { left: -26px; padding-left: 26px; width: 448px; box-sizing: border-box; }
html.m.wide .mtk-list { width: calc(448px + var(--a)); }
html.m .mchk { z-index: 2; }
html.m .mchk::after { left: -29px; top: -13px; width: 94px; height: 84px; }
html.m .mpill::after { inset: -20px -4px -20px 0; }
/* a sheet is open: the side tabs wait until it is closed (they used to switch pages from on top of Daily Notes) */
html.m #m:has(.mlayer.on) .mtabs button, html.m #m:has(.ntl.on) .mtabs button { pointer-events: none; }
html.m #m:has(.mlayer.on) .mtabs, html.m #m:has(.ntl.on) .mtabs { opacity: .35; transition: opacity .15s; }
/* notes toolbar: all ten buttons fit across the screen (Date and the paperclip used to be off the right edge) */
html.m .me-bar { gap: 5px; padding: 12px 14px; overflow-x: hidden; }
html.m .me-bar button { flex: 1 1 0; min-width: 0; padding: 0 2px; }
/* event names on the day view: wrap onto as many lines as the block has room for; short events show the name only (their place on the timeline already gives the time) */
html.m .mev.mcx b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lc, 1); overflow: hidden; overflow-wrap: anywhere; line-height: 25px; }
html.m .mev.mcx.short span > i { display: none; }
html.m .mev.mcx.short span { display: block; }
/* phone turned sideways: ask for it to be turned back instead of drawing a broken page */
#mland { display: none; }
html.m.land #mland { display: flex; position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 99999; align-items: center; justify-content: center; background: #1b1b1d; color: #fff; font: 600 20px/1.3 -apple-system, system-ui, sans-serif; letter-spacing: .2px; }
