/* Palm OS (palm.js): a Palm V-style handheld; the 160 x 160 green LCD and its silkscreened Graffiti area. */
body.palm-on > :not(#palmos) { visibility: hidden !important; }
#palmos { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; overflow: hidden; outline: none; user-select: none;
  background: radial-gradient(ellipse at 50% 40%, #3c4048, #121418 75%); }
.pm-device { position: relative; width: 250px; height: 390px; flex: none; transform-origin: 50% 50%; border-radius: 22px 22px 34px 34px;
  background: linear-gradient(90deg, #8d9298, #d9dde2 18%, #f2f4f6 50%, #d3d7dc 82%, #898e95); box-shadow: inset 0 1px 0 #fff, inset 0 -3px 6px rgba(0,0,0,.25), 0 24px 50px rgba(0,0,0,.6); }
.pm-brand { position: absolute; left: 22px; top: 12px; font: italic bold 12px "Helvetica Neue", Arial, sans-serif; color: #4b5058; letter-spacing: .5px; }
.pm-power { position: absolute; right: 24px; top: -3px; width: 30px; height: 5px; border: 0; border-radius: 3px 3px 0 0; background: #6a6f76; cursor: pointer; }
.pm-glass { position: absolute; left: 30px; top: 34px; width: 190px; height: 262px; padding: 12px 15px; border-radius: 6px; background: #2c3036;
  box-shadow: inset 0 2px 6px #000, 0 1px 0 #fff; }
/* the LCD: 160 x 160, grey-green, dark pixels */
.pm-screen { position: relative; width: 160px; height: 160px; overflow: hidden; background: #b8c4a4; color: #1f2a1a; box-shadow: inset 0 0 6px rgba(0,0,0,.35);
  font: bold 10px/1.2 "Tahoma", "Verdana", "DejaVu Sans", sans-serif; -webkit-font-smoothing: none; font-smooth: never; }
.pm-screen * { box-sizing: border-box; }
.pm-silk { display: grid; grid-template-columns: 18px 1fr 18px; gap: 2px; width: 160px; height: 66px; margin-top: 6px; color: #d7dbe0; }
.pm-silk-col { display: flex; flex-direction: column; justify-content: space-between; }
.pm-sb { height: 30px; padding: 0; border: 0; background: none; color: #d7dbe0; font: 13px "DejaVu Sans", sans-serif; cursor: pointer; }
.pm-sb:active { color: #fff; }
.pm-write { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; border: 1px solid #8e949b; border-radius: 4px; }
.pm-area { position: relative; touch-action: none; } .pm-area.letters { border-right: 1px solid #8e949b; }
.pm-area::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; border-top: 1px dotted rgba(215,219,224,.25); }
.pm-ink { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.pm-abc, .pm-123 { position: absolute; bottom: 1px; font: 7px "DejaVu Sans", sans-serif; color: #9aa1a8; pointer-events: none; } .pm-abc { left: 3px; } .pm-123 { right: 3px; }
.pm-keys { position: absolute; left: 24px; right: 24px; top: 312px; display: flex; justify-content: space-between; align-items: center; }
.pm-hard { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(circle at 50% 35%, #fdfdfd, #b9bec4 70%, #8a9096); box-shadow: inset 0 -2px 3px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.4); }
.pm-hard .pm-ic svg { width: 18px; height: 18px; } .pm-hard:active { filter: brightness(.9); }
.pm-rocker { display: flex; flex-direction: column; gap: 1px; } .pm-rocker button { width: 28px; height: 15px; padding: 0; border: 0; font-size: 8px; color: #555; background: linear-gradient(#f6f7f8, #b4b9bf); }
.pm-rocker button:first-child { border-radius: 8px 8px 2px 2px; } .pm-rocker button:last-child { border-radius: 2px 2px 8px 8px; }
.pm-logo { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font: bold 11px "Helvetica Neue", Arial, sans-serif; color: #6a7078; letter-spacing: 2px; }
.pm-splash { height: 100%; display: grid; place-content: center; text-align: center; } .pm-splash b { font: italic 900 30px "Helvetica Neue", Arial, sans-serif; } .pm-splash span { font-size: 9px; letter-spacing: 3px; }

/* forms */
.pm-form { display: flex; flex-direction: column; height: 100%; }
.pm-title { flex: none; display: flex; align-items: center; justify-content: space-between; height: 13px; border-bottom: 2px solid #1f2a1a; }
.pm-title b { height: 13px; padding: 0 5px; background: #1f2a1a; color: #b8c4a4; border-radius: 0 4px 0 0; line-height: 13px; white-space: nowrap; }
.pm-cat { display: flex; align-items: center; gap: 3px; padding-right: 2px; font-size: 9px; }
.pm-week i { font-style: normal; width: 9px; text-align: center; } .pm-week i.on { background: #1f2a1a; color: #b8c4a4; }
.pm-batt i { display: inline-block; width: 14px; height: 7px; border: 1px solid #1f2a1a; background: linear-gradient(90deg, #1f2a1a 70%, transparent 70%); }
.pm-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; } .pm-body::-webkit-scrollbar { display: none; }
.pm-btns { flex: none; display: flex; gap: 4px; padding: 2px 2px 3px; }
.pm-btn { min-width: 34px; height: 12px; padding: 0 5px; border: 1px solid #1f2a1a; border-radius: 6px; background: none; color: #1f2a1a; font: bold 9px/10px Tahoma, Verdana, sans-serif; cursor: pointer; }
.pm-btn:active { background: #1f2a1a; color: #b8c4a4; }
.pm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 0; padding: 3px 0; }
.pm-app { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 1px 0; border: 0; background: none; color: #1f2a1a; font: 8px/1 Tahoma, Verdana, sans-serif; cursor: pointer; }
.pm-app span:last-child { white-space: nowrap; } .pm-app:active .pm-ic { background: #1f2a1a; } .pm-app:active svg * { stroke: #b8c4a4; }
.pm-ic svg { display: block; }
.pm-list { display: flex; flex-direction: column; }
.pm-row { display: block; width: 100%; padding: 1px 3px; border: 0; border-bottom: 1px dotted rgba(31,42,26,.45); background: none; color: #1f2a1a; font: bold 10px/12px Tahoma, Verdana, sans-serif; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-row.two { display: flex; justify-content: space-between; gap: 6px; } .pm-row:active { background: #1f2a1a; color: #b8c4a4; }
.pm-ta { width: 100%; height: 100%; resize: none; border: 0; outline: none; padding: 1px 3px; background: repeating-linear-gradient(transparent 0 11px, rgba(31,42,26,.4) 11px 12px); color: #1f2a1a; font: bold 10px/12px Tahoma, Verdana, sans-serif; }
.pm-in { flex: 1; min-width: 0; width: 100%; border: 0; border-bottom: 1px dotted rgba(31,42,26,.5); outline: none; background: none; color: #1f2a1a; font: bold 10px/12px Tahoma, Verdana, sans-serif; padding: 0 2px; }
.pm-todo { display: flex; align-items: center; gap: 3px; padding: 1px 2px; } .pm-todo.done .pm-in { text-decoration: line-through; }
.pm-check { width: 9px; height: 9px; padding: 0; border: 1px solid #1f2a1a; background: none; color: #1f2a1a; font: bold 8px/7px sans-serif; } .pm-pri { width: 7px; text-align: center; }
.pm-db { display: flex; align-items: center; gap: 2px; } .pm-db span { width: 26px; text-align: right; font-size: 9px; }
.pm-card { padding: 4px 4px; } .pm-card b { display: block; font-size: 11px; margin-bottom: 3px; } .pm-card p { margin: 0 0 3px; font-weight: normal; }
.pm-wait { padding: 6px; font-weight: normal; }
.pm-calc { display: flex; flex-direction: column; gap: 3px; padding: 3px; } .pm-calc-lcd { border: 1px solid #1f2a1a; text-align: right; padding: 1px 4px; font-size: 13px; }
.pm-calc-k { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; } .pm-key { height: 19px; padding: 0; border: 1px solid #1f2a1a; border-radius: 4px; background: none; color: #1f2a1a; font: bold 10px Tahoma, sans-serif; }
.pm-key:active { background: #1f2a1a; color: #b8c4a4; } .pm-key.w { grid-column: span 2; }
.pm-hs { display: grid; justify-items: center; align-content: center; height: 100%; gap: 3px; } .pm-hs-logo.spin svg { animation: pm-spin 1s linear infinite; } .pm-hs-st { margin: 0; font-size: 9px; text-align: center; }
@keyframes pm-spin { to { transform: rotate(360deg); } }
.pm-ghelp { display: block; width: 156px; height: 132px; margin: 1px auto; }
.pm-alert-ov { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(184,196,164,.4); }
.pm-alert { width: 150px; background: #b8c4a4; border: 2px solid #1f2a1a; border-radius: 3px; }
.pm-alert-t { background: #1f2a1a; color: #b8c4a4; text-align: center; padding: 1px; }
.pm-alert-b { display: flex; gap: 5px; padding: 4px; } .pm-alert-b.col { flex-direction: column; } .pm-alert-b p { margin: 0; font-weight: normal; }
.pm-alert-i { flex: none; width: 14px; height: 14px; display: grid; place-items: center; border: 1px solid #1f2a1a; border-radius: 50%; font-style: italic; }
