/* Phamily Ties Workstation: shared sketch language for every section. Layout and first paint live inline in index.html. */

/* type */
.pt-h1{font:400 72px/72px Gellatio,cursive;color:#3B7FC7;margin:0}
.pt-h2{font:400 48px/52px Gellatio,cursive;color:#3B7FC7;margin:0}
.pt-h3{font:400 32px/36px Gellatio,cursive;color:#3B7FC7;margin:0}
.pt-hand{font:500 20px/26px Caveat,cursive;color:#113859}
.pt-note{font:500 18px/24px Caveat,cursive;color:#113859}
.pt-line{font:500 28px/34px Caveat,cursive;color:#113859}
.pt-num{font:600 18px/20px Caveat,cursive;color:#113859}
.pt-link{color:#113859;border-bottom:1.5px dashed #3B7FC7;cursor:pointer}
/* gp70: a count circled in pencil, the hand drawn ring on "On Your Desk" (brand blue only) */
.pt-ring{display:inline-block;margin-left:8px;padding:0 9px;min-width:1.2em;text-align:center;font-weight:600;color:#113859;border:2px solid #3B7FC7;border-radius:52% 48% 55% 45%/50% 57% 43% 50%;transform:rotate(-4deg);line-height:1.25}
.pt-ring[hidden]{display:none}
.pt-under{display:inline-block;position:relative}
.pt-under::after{content:"";position:absolute;left:-6px;right:-10px;bottom:-8px;border-bottom:1px solid #5F5F5F;transform:rotate(-.4deg)}

/* container: raised paper, the pencil frame is drawn by PT.core.pencil.frame(el) */
.pt-box{position:relative;z-index:0;background:#FAFAF7;border-radius:10px;padding:20px;box-shadow:inset 0 0 0 2px #5F5F5F}
.pt-box.pn-on{box-shadow:none}
.pt-pn{position:absolute;left:0;top:0;z-index:-1;pointer-events:none;overflow:visible}
.pt-mk{position:absolute;left:0;top:0;z-index:-1;pointer-events:none;overflow:visible}
.pt-mk path{mix-blend-mode:multiply;transform-box:fill-box;transform-origin:0 50%}
.pt-marked{position:relative;z-index:0;color:#113859}
.pt-row{border-bottom:1px solid rgba(95,95,95,.35)}

/* states */
.pt-empty{font:500 20px/26px Caveat,cursive;color:#113859;padding:18px 0}
.pt-empty small{display:block;font:400 10px/16px Cousine,monospace;letter-spacing:.2em;text-transform:uppercase;color:#5F5F5F}
.pt-working{position:absolute;left:0;right:0;top:0;height:3px;background:#3B7FC7;box-shadow:0 0 6px #92D8FF;overflow:hidden;border-radius:2px}
.pt-working::after{content:"";position:absolute;top:0;bottom:0;left:0;width:120px;background:linear-gradient(90deg,rgba(255,255,255,0),#fff 40px,#fff 80px,rgba(255,255,255,0));animation:pt-pulse 2.4s linear infinite;transform:translateX(-120px)}
@keyframes pt-pulse{to{transform:translateX(100vw)}}
@media (prefers-reduced-motion:reduce){.pt-working::after{animation:none;transform:none;left:calc(50% - 60px)}}

/* command list */
#pt-cmd-list{position:absolute;left:0;top:46px;width:100%;min-width:300px;max-height:min(60vh,420px);overflow:auto;background:#FAFAF7;border-radius:10px;box-shadow:inset 0 0 0 2px #5F5F5F,5px 5px 0 -1px rgba(148,148,148,.35);padding:6px 0;z-index:5}
.pt-hit{display:flex;width:100%;align-items:baseline;gap:10px;text-align:left;padding:7px 14px 6px 16px;min-height:40px;border-bottom:1px solid rgba(95,95,95,.22);position:relative}
.pt-hit:last-child{border-bottom:0}
.pt-hit b{font:500 20px/24px Caveat,cursive;color:#113859;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.pt-hit i{font:400 10px/16px Cousine,monospace;font-style:normal;letter-spacing:.2em;text-transform:uppercase;color:#5F5F5F;margin-left:auto;white-space:nowrap}
.pt-hit[aria-selected=true] b{font-weight:600}
.pt-hit[aria-selected=true]::before{content:"";position:absolute;left:6px;top:11px;bottom:11px;border-left:1.5px solid #3B7FC7;transform:rotate(4deg)}

/* toast */
#pt-toasts{position:fixed;left:50%;bottom:max(26px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:60;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;max-width:calc(100vw - 32px)}
.pt-toast{pointer-events:auto;display:flex;align-items:center;gap:14px;background:#FAFAF7;border-radius:10px;box-shadow:inset 0 0 0 2px #5F5F5F,5px 5px 0 -1px rgba(148,148,148,.35);padding:8px 14px 8px 16px;font:500 20px/24px Caveat,cursive;color:#113859;animation:pt-in .16s ease-out both;max-width:100%}
.pt-toast button{font:700 11px/16px Cousine,monospace;letter-spacing:.18em;color:#113859;border-bottom:1.5px dashed #3B7FC7;min-height:28px;flex:none}

/* overlay sheet (add, task) */
#pt-over{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-start;justify-content:center;padding:max(72px,10vh) max(16px,env(safe-area-inset-right)) 24px max(16px,env(safe-area-inset-left));background:rgba(242,242,238,.82)}
.pt-sheet{width:min(520px,100%);animation:pt-in .16s ease-out both}
.pt-sheet input[type=text]{width:100%;height:44px;border:0;border-bottom:1px solid #5F5F5F;background:none;outline:0;font:500 22px/26px Caveat,cursive;color:#113859;margin:10px 0 16px}
.pt-sheet .pt-acts{display:flex;gap:12px;justify-content:flex-end;align-items:center}

/* stub section and the guest card */
.pt-stub{padding-top:8px;max-width:760px}
.pt-stub .pt-h1{margin-top:30px}
.pt-stub .pt-line{margin:18px 0 26px}
.pt-stub .pt-box{max-width:420px;font:400 14px/22px Cousine,monospace}
.pt-stub dl{display:grid;grid-template-columns:auto 1fr;gap:2px 16px;margin:8px 0 0}
.pt-stub dt{font:400 10px/22px Cousine,monospace;letter-spacing:.2em;text-transform:uppercase;color:#5F5F5F}
.pt-stub dd{margin:0;color:#113859}
.pt-card{max-width:460px;margin:8vh auto 0}
.pt-card p{margin:10px 0 0}
#pt[data-level=view] #pt-rail,#pt[data-level=view] #pt-bar,#pt[data-level=view] #pt-cmdbox,#pt[data-level=view] #pt-left,#pt[data-level=view] #pt-alfred,#pt[data-level=view] #pt-gauge{display:none}
#pt[data-level=view]{padding-left:0}
#pt[data-level=view] #pt-top{background-position:0 0}

/* Alfred's worker satellites */

/* update bar */
/* sits under the top strip at the right, so it never covers the command box or the left off chips */
/* r13: a slim full width strip that pushes the page down by its own height, so it covers no chip, date or button */
#pt-update{position:fixed;left:0;right:0;top:0;transform:none;z-index:70;max-width:none;box-sizing:border-box;height:calc(36px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 16px 0;justify-content:center;gap:16px;border-radius:0;animation:none;font-size:19px;line-height:22px;box-shadow:inset 0 -2px 0 #5F5F5F}
#pt-update button{min-height:34px;min-width:44px}
@media (pointer:coarse){#pt-update button{min-height:44px}#pt-update{height:calc(44px + env(safe-area-inset-top,0px))}}
#pt.pt-hasupd{padding-top:calc(36px + env(safe-area-inset-top,0px))}
@media (pointer:coarse){#pt.pt-hasupd{padding-top:calc(44px + env(safe-area-inset-top,0px))}}
#pt.pt-hasupd #pt-top{top:calc(36px + env(safe-area-inset-top,0px));padding-top:0}
#pt.pt-hasupd #pt-rail{top:calc(36px + env(safe-area-inset-top,0px))}
@media (pointer:coarse){#pt.pt-hasupd #pt-top{top:calc(44px + env(safe-area-inset-top,0px))}#pt.pt-hasupd #pt-rail{top:calc(44px + env(safe-area-inset-top,0px))}}

@media (max-width:1099px){.pt-h1{font-size:56px;line-height:60px}}
@media (max-width:599px){.pt-h1{font-size:40px;line-height:44px}.pt-h2{font-size:34px;line-height:38px}.pt-box{padding:16px}
 #pt-toasts{bottom:calc(74px + env(safe-area-inset-bottom))}#pt-cmd-list{position:fixed;left:16px;right:16px;top:52px;width:auto}}

/* ===== ONE PRODUCT (review pass). The shared kit every section uses: page frame, title, chips, highlighted status, progress, empty state, motion. ===== */
:root{--pt-page:1240px;--pt-s1:6px;--pt-s2:12px;--pt-s3:20px;--pt-s4:32px}
/* page frame: every section starts at the same left edge, titles sit on the same line (26px of air for the script ascenders) */
.pt-page{max-width:var(--pt-page);margin:0;padding:0 0 90px}
.pt-h1,.pt-h2,.pt-h3{overflow:visible;padding-bottom:4px}
/* a small pencil chip: counts, kinds, filters */
.pt-chip{display:inline-flex;align-items:center;gap:6px;font:700 10px/14px Cousine,monospace;letter-spacing:.14em;text-transform:uppercase;color:#5F5F5F;border-radius:6px;padding:2px 8px;box-shadow:inset 0 0 0 1.2px #5F5F5F;background:#FAFAF7}
/* highlighted status word: ink text, two uneven marker passes. Never blue text on blue. */
.pt-hl{position:relative;z-index:0;color:#5F5F5F;background:none;padding:0 5px}
.pt-hl::before,.pt-hl::after{content:"";position:absolute;z-index:-1;pointer-events:none;mix-blend-mode:multiply}
.pt-hl::before{inset:1px -4px 1px -3px;background:linear-gradient(92deg,rgba(146,216,255,.9),rgba(146,216,255,.5) 62%,rgba(146,216,255,.82));border-radius:3px 8px 4px 9px;transform:rotate(-1.1deg) skewX(-9deg)}
.pt-hl::after{inset:5px -1px -1px 7px;background:rgba(59,127,199,.2);border-radius:7px 3px 8px 3px;transform:rotate(.9deg) skewX(-5deg)}
/* progress: pencil box, hatched highlighter fill (scaleX on <i>), percent in the hand */
.pt-bar{position:relative;display:inline-block;min-width:92px;height:22px;border-radius:4px;box-shadow:inset 0 0 0 1.4px #5F5F5F;background:#FAFAF7;overflow:hidden;vertical-align:middle}
.pt-bar i{position:absolute;inset:2px;transform-origin:0 50%;transition:transform .18s ease-out;background:repeating-linear-gradient(101deg,rgba(146,216,255,.85) 0 6px,rgba(59,127,199,.38) 6px 10px,rgba(146,216,255,.6) 10px 17px)}
.pt-bar b{position:relative;display:block;text-align:center;font:600 17px/22px Caveat,cursive;color:#5F5F5F}
/* empty state: one hand-written line with a pencil dash in front */
.pt-empty{position:relative;padding-left:26px}
.pt-empty::before{content:"";position:absolute;left:2px;top:30px;width:16px;border-top:1.5px solid #5F5F5F;transform:rotate(-8deg)}
/* margin note and dimension line: the build-sheet voice, used sparingly outside Blueprints */
.pt-margin{font:500 19px/23px Caveat,cursive;color:#5F5F5F;transform:rotate(-2deg);transform-origin:0 50%}
.pt-dim{position:relative;display:flex;align-items:center;gap:10px;font:500 17px/20px Caveat,cursive;color:#5F5F5F;white-space:nowrap}
.pt-dim::before,.pt-dim::after{content:"";flex:1;min-width:18px;height:9px;border-top:1px solid #5F5F5F;transform:translateY(4px)}
.pt-dim::before{border-left:1px solid #5F5F5F}.pt-dim::after{border-right:1px solid #5F5F5F}
/* entrance: the pencil rule draws under the title, the boxes settle (class set for 700ms by core/pencil.js) */
.pt-under::after{transform-origin:0 50%}
.pt-sec.pt-enter .pt-under::after{animation:pt-rule .36s cubic-bezier(.3,.7,.3,1) .08s both}
@keyframes pt-rule{from{transform:rotate(-.4deg) scaleX(0)}to{transform:rotate(-.4deg) scaleX(1)}}
.pt-sec.pt-enter .pt-box{animation:pt-settle .24s cubic-bezier(.3,.8,.4,1) both;animation-delay:calc(var(--pt-i,0)*38ms + 60ms)}
@keyframes pt-settle{from{opacity:0;transform:translateY(12px) rotate(-.35deg)}to{opacity:1;transform:none}}
/* a tick: the check draws left to right, the strike follows */
@keyframes pt-tick{from{opacity:0;transform:scaleX(.08) rotate(-14deg)}60%{opacity:1}to{opacity:1;transform:none}}
@keyframes pt-strike{from{transform:rotate(-.7deg) scaleX(0)}to{transform:rotate(-.7deg) scaleX(1)}}
/* a handoff: the sheet travels to its place on the rail, the icon takes it */
.pt-fly{position:fixed;left:0;top:0;z-index:80;width:18px;height:22px;margin:-11px 0 0 -9px;border-radius:2px 6px 2px 2px;background:#FAFAF7;box-shadow:inset 0 0 0 1.5px #5F5F5F,2px 2px 0 -0.5px rgba(148,148,148,.5);pointer-events:none;will-change:transform}
.pt-fly::before{content:"";position:absolute;left:4px;right:4px;top:6px;height:7px;border-top:1.2px solid #3B7FC7;border-bottom:1.2px solid #5F5F5F}
/* ===== ONE BUTTON FAMILY. primary .go (filled mid blue, white caps), secondary (paper), quiet (text, drawn underline). Rounded, never black. ===== */
.pt-btn{appearance:none;-webkit-appearance:none;cursor:pointer;border:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;font:700 11px/16px Cousine,monospace;letter-spacing:.16em;text-transform:uppercase;color:#5F5F5F;padding:9px 16px;min-height:38px;border-radius:12px 10px 13px 9px;background:#FAFAF7;box-shadow:inset 0 0 0 1.5px #5F5F5F,2px 2px 0 -.5px rgba(148,148,148,.45);transition:transform .1s ease-out;-webkit-tap-highlight-color:transparent}
.pt-btn:hover{transform:translate(-1px,-1px)}
.pt-btn:active{transform:translateY(1px)}
.pt-btn:focus-visible{outline:2px dashed #3B7FC7;outline-offset:3px}
.pt-btn.go,.pt-btn[data-go-main]{background:#3B7FC7;color:#fff;box-shadow:inset 0 0 0 1.5px #113859,2px 2px 0 -.5px rgba(95,95,95,.45)}
.pt-btn.quiet{background:none;box-shadow:none;color:#113859;padding:6px 4px;min-height:34px;border-radius:0;background-image:linear-gradient(100deg,#5F5F5F 0 40%,transparent 40% 46%,#5F5F5F 46% 100%);background-size:100% 1.5px;background-repeat:no-repeat;background-position:0 calc(100% - 4px)}
.pt-btn.quiet:hover{transform:none;background-image:linear-gradient(100deg,#3B7FC7,#3B7FC7)}
.pt-btn.sm{min-height:30px;padding:5px 12px;font-size:10px}
.pt-btn[aria-pressed=true]{box-shadow:inset 0 0 0 2px #3B7FC7,2px 2px 0 -.5px rgba(95,95,95,.45)}
.pt-btn:disabled,.pt-btn[disabled]{color:#949494;background:#FAFAF7;box-shadow:inset 0 0 0 1.5px rgba(148,148,148,.6);cursor:default;transform:none;opacity:.8}
.pt-btn.go:disabled,.pt-btn.go[disabled]{background:#92b6dd;color:#fff;box-shadow:inset 0 0 0 1.5px rgba(17,56,89,.4)}
@media (prefers-reduced-motion:reduce){.pt-sec.pt-enter .pt-under::after,.pt-sec.pt-enter .pt-box{animation:none}.pt-btn,.pt-bar i{transition:none}.pt-btn:hover{transform:none}}

/* review 2: never black in a field; phone controls at 44 px; sketch-language empty states */
textarea,select,input{color:#113859}
textarea::placeholder,input::placeholder{color:#949494;opacity:1}
.pt-empty::before{top:14px;width:15px;border-top-color:#3B7FC7}
.pt-empty::after{content:"";position:absolute;left:4px;top:19px;width:11px;border-top:1px solid #949494;transform:rotate(-8deg)}
@media (max-width:599px){
 .pt-btn,#pt-stage .pt-btn{min-height:44px}
 .pt-btn.sm{min-height:40px}
 .pt-link,#pt-stage .pt-link{display:inline-flex;align-items:center;min-height:44px;border-bottom:0;text-decoration:underline dashed #3B7FC7 1.5px;text-underline-offset:5px}
 #pt-over .p1-chip,.p1-chip{min-height:44px;padding:6px 15px}
}

/* ---- join2: the Desk tray and the phone "more" tab ---- */
#pt-desk-tray{position:fixed;z-index:60;left:calc(var(--rail) + var(--sal) + 14px);bottom:92px;width:min(300px,calc(100vw - 32px))}
#pt-desk-tray[hidden]{display:none}
#pt-desk-tray .pt-dt-in{padding:14px 14px 12px;background:#FAFAF7;position:relative}
.pt-dt-h{margin:0 0 6px;font:600 26px/26px Caveat,cursive;color:#113859}
.pt-dt-tabs{display:grid;grid-template-columns:1fr;gap:6px}
.pt-dt-tab{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:46px;padding:5px 14px 5px 16px;border:0;background:#F2F2EE;border-radius:12px 12px 4px 4px;box-shadow:inset 0 0 0 1.5px #5F5F5F;color:#113859;cursor:pointer;text-align:left;transform:rotate(var(--tilt,0deg));font:inherit}
.pt-dt-tab .pt-dt-n{font:600 23px/22px Caveat,cursive}
.pt-dt-tab i{font:500 17px/16px Caveat,cursive;color:#5F5F5F;font-style:normal}
.pt-dt-tab:hover,.pt-dt-tab:focus-visible{background:#FAFAF7;box-shadow:inset 0 0 0 2px #3B7FC7}
.pt-dt-tab[aria-current=page]{box-shadow:inset 0 0 0 2px #113859}
.pt-more{display:none}
@media (max-width:599px){
 #pt-desk-tray{left:auto;right:12px;bottom:calc(74px + var(--sab,0px))}
 .pt-more{display:block;position:absolute;left:12px;top:-30px;height:30px;padding:0 14px;border:0;border-radius:10px 10px 0 0;background:#FAFAF7;box-shadow:inset 0 0 0 1.5px #5F5F5F;font:600 20px/28px Caveat,cursive;color:#113859;cursor:pointer}
 .pt-more[aria-current=page]{box-shadow:inset 0 0 0 2px #113859}
 /* review 3: 44 px hit areas on the phone without moving anything */
 .pt-more::before{content:"";position:absolute;left:-6px;right:-6px;top:-14px;bottom:0}
 .pt-cmd{height:44px}.pt-cmd input{height:42px}
 #pt-gauge{min-width:44px;min-height:44px;justify-content:center}
 #pt-alfred .pt-satn{position:relative}#pt-alfred .pt-satn::after{content:"";position:absolute;left:-8px;right:-8px;top:-12px;bottom:-12px}
}

/* r12 device pass: touch devices (phone and iPad). Inputs at 16 px so iOS does not zoom the page, 44 px taps, top inset for the notch */
:root{--top:calc(64px + env(safe-area-inset-top,0px))}
#pt #pt-top{padding-top:env(safe-area-inset-top,0px)}
@media (max-width:599px){#pt-cmd-list{top:calc(52px + env(safe-area-inset-top,0px))}}
@media (pointer:coarse){
 #pt input:not([type=checkbox]):not([type=radio]):not([type=range]),#pt textarea,#pt select,#pt-over input:not([type=checkbox]):not([type=radio]),#pt-over textarea,#pt-over select,.so-sheet input,.so-sheet textarea,.so-sheet select{font-size:16px!important}
 .pt-btn,#pt-stage .pt-btn,.pt-btn.sm{min-height:44px}
 .pt-link,#pt-stage .pt-link{display:inline-flex;align-items:center;min-height:44px}
 .pt-cmd{height:44px}.pt-cmd input{height:42px}
 .pt-gauge{min-height:44px}
 [data-section="build"] .pr-lab,[data-section="tour"] .pr-chip,.pr-lab,.pr-chip{min-height:44px}
 [data-section="blueprints"] .bp-chip,[data-section="blueprints"] .bp-back{min-height:44px;display:inline-flex;align-items:center}
 [data-section="social"] .so-tab{min-height:44px}
}
@media (pointer:coarse){
 #pt input:not([type=checkbox]):not([type=radio]):not([type=range]),#pt select{min-height:44px}
 [data-section="blueprints"] .bp-tab{min-height:44px}
 [data-section="blueprints"] .bp-mini,[data-section="build"] .bd-sw,[data-section="approvals"] .ap-src,[data-section="today"] .dy-from{min-height:44px;display:inline-flex;align-items:center}
 [data-section="invoices"] .iv-a,[data-section="approvals"] a{display:inline-flex;align-items:center;min-height:44px}
}
@media (pointer:coarse){
 [data-section="blueprints"] .bp-sortb,[data-section="alfred"] button,[data-section="alfred"] .pt-link{min-height:44px}
 #pt-stage [data-section="alfred"] button:not(.pt-btn){display:inline-flex;align-items:center}
}

/* r13: Tour link wherever it sits in the page is a 44 px target; Today update strip below */
#pt-stage [data-go="tour"],#pt-stage [data-tour-link]{display:inline-flex;align-items:center;min-height:44px;min-width:44px}

/* r15: Team, Build, Canvas (and Approvals for the owner) live in the phone More tray; 44 px rows, current one marked */
.pt-dt-ph{display:none}
.pt-dt-tab[hidden]{display:none!important}
@media (max-width:599px){
 .pt-dt-ph{display:flex}
 .pt-dt-tab{min-height:48px}
 #pt-desk-tray .pt-dt-in{max-height:calc(100dvh - 150px - var(--sab,0px));overflow-y:auto;overscroll-behavior:contain}
 .pt-dt-tab[aria-current=page]::after{content:"";position:absolute;right:12px;top:50%;width:10px;height:10px;margin-top:-5px;border-radius:50%;background:#92D8FF;box-shadow:0 0 0 1.5px #113859}
}

/* while the page waits for sign-in or the first section, say so (after a beat, so a fast load never flashes it) */
#pt-stage:empty::after{content:"Opening the desk. One moment.";display:block;padding:72px 16px 0;font:600 26px/1.2 Caveat,cursive;color:#113859;opacity:0;animation:pt-wait .3s ease 1.2s forwards}
@keyframes pt-wait{to{opacity:1}}
@media (prefers-reduced-motion:reduce){#pt-stage:empty::after{animation:none;opacity:1}}

/* ===== r17 keyboard, focus and contrast. One focus ring for everything: 2 px dashed mid blue, 3 px off, never removed. ===== */
:focus-visible{outline:2px dashed #3B7FC7;outline-offset:3px}
:is(a,button,input,select,textarea,summary,[tabindex],[role=button],[role=tab],[role=link],[role=option]):focus-visible,
#pt-over :focus-visible,#pt-desk-tray :focus-visible,#pt-update :focus-visible,.so-sheet :focus-visible{outline:2px dashed #3B7FC7!important;outline-offset:3px!important}
.pt-btn:focus-visible,.pt-nav:focus-visible,.pt-hit:focus-visible,.pt-dt-tab:focus-visible{transform:none!important}
[tabindex="-1"]:focus:not(:focus-visible){outline:0}
/* grey #949494 stays for placeholders and decorative ticks; real text is ink #5F5F5F */
#pt-rev,.pt-caps,.pt-key,.pt-stub dt,.pt-empty small,.pt-hit i,#pt .pt-caps{color:#5F5F5F}
.pt-key{border-color:#5F5F5F}
/* small blue text reads 4.5 to 1 on paper: a deeper blue for words under 24 px, the palette blue stays for lettering and lines */
:root{--pt-bluetxt:#3B7FC7}
.pt-btn.go,.pt-btn[data-go-main]{background:#3B7FC7}
.pt-btn.go:disabled,.pt-btn.go[disabled]{background:#6F93BE;color:#fff}
/* r17: lettering that lives in injected sheets and in core/alfred.js, measured to 4.5 to 1 */
.pt-modes .al-mode-e{color:#3B7FC7}
#pt-over .pt-cs-pre :is(.bar,.who,.dn,.empty),#pt-over .pt-cs .grp>legend,#pt-over .pt-cs .pick small,#pt-over .pt-cs .flow li:not(.on):not(.past):not(.off){color:#5F5F5F}

/* fix Nov 19: the new task moment (approved card 14A) on the hub's own paper: pinned post-it, caps line, handwritten title, marker on the due day */
#pt-newtask{position:fixed;z-index:61;left:50%;top:calc(var(--top,64px) + 10px + env(safe-area-inset-top,0px));transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);pointer-events:none}
.pt-nt{pointer-events:auto;position:relative;display:flex;align-items:center;gap:14px;min-width:300px;max-width:min(520px,calc(100vw - 32px));box-sizing:border-box;background:#FAFAF7;border-radius:10px;box-shadow:inset 0 0 0 2px #5F5F5F,5px 5px 0 -1px rgba(148,148,148,.35);padding:10px 40px 10px 12px;cursor:pointer;animation:pt-nt-in .18s ease-out both}
.pt-nt.out{animation:pt-nt-out .16s ease-in both}
.pt-nt:focus-visible{outline:2px dashed #3B7FC7;outline-offset:3px}
.pt-nt-pi{flex:none;overflow:visible;transform-origin:50% 12%;animation:pt-nt-drop .4s cubic-bezier(.2,.7,.3,1) both,pt-nt-wob .55s ease-in-out .4s both}
.pt-nt-tx{min-width:0}
.pt-nt-lab,.p1o .pt-nt-lab{display:block;font:400 13px/18px Cousine,monospace;letter-spacing:.14em;text-transform:uppercase;color:#5F5F5F}
.pt-nt-tx b{display:block;font:600 28px/32px Caveat,cursive;color:#113859;overflow-wrap:anywhere}
.pt-nt-tx small{display:block;font:500 20px/26px Caveat,cursive;color:#5F5F5F}
.pt-nt-tx small em,.p1o .p1-due em{position:relative;display:inline-block;font-style:normal;font-weight:600;color:#113859}
.pt-nt-x{position:absolute;right:6px;top:6px;width:30px;height:30px;font:400 20px/1 Cousine,monospace;color:#5F5F5F;background:none;border:0;cursor:pointer}
.pt-nt-x:focus-visible{outline:2px dashed #3B7FC7;outline-offset:1px}
@keyframes pt-nt-in{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:none}}
@keyframes pt-nt-out{from{opacity:1}to{opacity:0;transform:translateY(-10px)}}
@keyframes pt-nt-drop{from{opacity:0;transform:translateY(-46px) rotate(-14deg)}to{opacity:1;transform:none}}
@keyframes pt-nt-wob{0%{transform:rotate(0)}30%{transform:rotate(6deg)}65%{transform:rotate(-2.7deg)}100%{transform:rotate(0)}}
.pt-nt.still,.pt-nt.still .pt-nt-pi{animation:pt-in .15s ease-out both}
@media (prefers-reduced-motion:reduce){.pt-nt,.pt-nt.out{animation:pt-in .15s ease-out both}.pt-nt-pi{animation:none}}
@media (max-width:599px){#pt-newtask{top:calc(var(--top,56px) + 8px + env(safe-area-inset-top,0px))}.pt-nt{min-width:0;width:calc(100vw - 32px);gap:10px}.pt-nt-tx b{font-size:24px;line-height:28px}.pt-nt-lab{font-size:11px}.pt-nt-x{width:44px;height:44px;right:0;top:0}}

/* fix Nov 19: no browser-drawn selects anywhere. One drawn control: raised paper, pencil edge with uneven corners, the button family's offset shadow,
   and a hand-drawn caret. Sections keep their own font and size. */
#pt #pt-stage select,#pt-stage select,#pt-over select{appearance:none;-webkit-appearance:none;background-color:#FAFAF7;border:0;border-radius:12px 10px 13px 9px;box-shadow:inset 0 0 0 1.5px #5F5F5F,2px 2px 0 -.5px rgba(148,148,148,.4);color:#113859;padding-right:34px;cursor:pointer;text-overflow:ellipsis;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M2.6 2.8C5 5.6 7 7.8 9.2 10.2C11.2 7.6 13.4 5.2 15.6 2.4' fill='none' stroke='%235F5F5F' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3.4 2.4C5.6 5 7.4 7 9.1 9' fill='none' stroke='%235F5F5F' stroke-width='.7' stroke-linecap='round' opacity='.6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;background-size:15px 10px}
#pt-stage select:focus-visible,#pt-over select:focus-visible{outline:2px dashed #3B7FC7;outline-offset:3px}
#pt-stage select:disabled,#pt-over select:disabled{color:#949494;cursor:default}
