/* Wah-Kit Post planner (wah-kit.com/posts/) */
.pp-groups { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.pp-gtab { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font: 700 14px var(--font-body); color: var(--ink-soft); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.pp-gtab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pp-gadd { border-style: dashed; color: var(--brand, #2563EB); }
.pp-n { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #E0E7FF; color: #3730A3; font-size: 12px; font-weight: 800; text-align: center; }
.pp-n.late { background: #FEE2E2; color: #B42318; }
.pp-gtab.on .pp-n { background: rgba(255, 255, 255, .25); color: #fff; }
.pp-late { background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 14px; padding: 10px 12px; display: grid; gap: 8px; }
.pp-late > b { color: #9A3412; font-size: 14px; }
.pp-laterow { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pp-laterow .pp-post { flex: 0 0 260px; }
.pp-nav .md-dayt { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.md.pp { max-width: none; }
.pp-week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 8px; align-items: start; overflow-x: auto; padding-bottom: 4px; }
.pp-day { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 140px; min-width: 0; }
.pp-day > header { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding: 2px 4px 6px; border-bottom: 1px solid var(--line); }
.pp-day > header b { font: 800 15px var(--font-display, var(--font-body)); }
.pp-day > header small { color: var(--muted); font-size: 12px; }
.pp-day > header .pp-n { margin-left: auto; }
.pp-day.tdy { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pp-day.past { background: #FAFAFB; }
.pp-day.lock { background: repeating-linear-gradient(135deg, #F8FAFC 0 6px, #F1F5F9 6px 12px); }
.pp-day.over, .pp-post.over { outline: 2px dashed #2563EB; outline-offset: 2px; }
.pp-post { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pp-post[draggable=true] { cursor: grab; }
.pp-post.drag { opacity: .4; }
.pp-post.late { border-color: #FDBA74; }
.pp-post.pp-hl { box-shadow: 0 0 0 3px #FACC15; }
.pp-meta { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); min-height: 0; }
.pp-meta:empty { display: none; }
.pp-ord { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.pp-text { font-size: 13.5px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.pp-text code, .pp-prev code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: #F1F5F9; padding: 0 3px; border-radius: 4px; }
.pp-text q, .pp-prev q { display: block; border-left: 3px solid #CBD5E1; padding-left: 8px; color: var(--ink-soft); quotes: none; }
.pp-none { color: var(--muted); font-style: italic; }
.pp-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 4px; }
.pp-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: copy; background: #F1F5F9; }
.pp-acts { display: flex; flex-wrap: wrap; gap: 4px; }
.pp-acts .btn { padding: 6px 9px; min-height: 0; font-size: 12.5px; }
.pp-week .pp-acts .btn-primary { flex: 1 1 100%; }
.pp-week .pp-acts .pp-done { flex: 1; }
.pp-done { color: #15803D; }
.pp-add { border: 1px dashed var(--line); background: transparent; border-radius: 10px; padding: 8px; font: 700 13px var(--font-body); color: var(--brand, #2563EB); cursor: pointer; }
.pp-add:hover { border-color: currentColor; }
.pp-lock { font-size: 12px; color: var(--muted); margin: 0; }
.pp-empty { text-align: center; padding: 8px 0; }
.pp-use { text-align: center; }
/* phone: the week as chips, one day below */
.pp-chips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pp-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; position: relative; font: inherit; color: var(--ink); }
.pp-chip small { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.pp-chip b { font-size: 16px; }
.pp-chip i { position: absolute; top: -5px; right: -3px; font-style: normal; background: #4F46E5; color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; min-width: 16px; padding: 0 4px; }
.pp-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; } .pp-chip.on small { color: #E5E7EB; }
.pp-chip.tdy:not(.on) { border-color: var(--ink); }
.pp-chip.lock { opacity: .5; }
@media (max-width: 899px) { .pp-day { min-height: 0; } .pp-acts .btn-primary { flex: 1; } }
/* sent */
.pp-sent { display: grid; gap: 8px; }
.pp-srow { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.pp-srow img, .pp-sico { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; display: grid; place-items: center; background: #F1F5F9; font-size: 22px; }
.pp-stext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-stext b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-stext small { color: var(--muted); font-size: 12px; }
.pp-sacts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.pp-sacts .btn { padding: 6px 9px; min-height: 0; font-size: 12.5px; }
@media (max-width: 600px) { .pp-srow { flex-wrap: wrap; } .pp-sacts { width: 100%; } }
/* editor */
.pp-bar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pp-tb { min-width: 36px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font: 700 14px var(--font-body); cursor: pointer; color: var(--ink); }
.pp-tb-italic { font-style: italic; font-family: Georgia, serif; } .pp-tb-strikethrough { text-decoration: line-through; } .pp-tb-monospace { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.pp-lang { margin-left: auto; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; font: 600 13px var(--font-body); max-width: 150px; }
.pp-sug { display: flex; gap: 4px; flex-wrap: wrap; min-height: 0; }
.pp-sw { border: 1px solid #C7D2FE; background: #EEF2FF; border-radius: 999px; padding: 4px 10px; font-size: 15px; cursor: pointer; }
.pp-ta { width: 100%; min-height: 150px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: 15px/1.45 var(--font-body); resize: vertical; box-sizing: border-box; }
.pp-prevw { background: #ECE5DD; border-radius: 12px; padding: 8px; display: grid; gap: 4px; }
.pp-prevw > small { font-size: 11px; color: #54656F; font-weight: 700; }
.pp-prev { background: #fff; border-radius: 8px; padding: 8px 10px; font-size: 14px; line-height: 1.45; max-height: 160px; overflow: auto; overflow-wrap: anywhere; }
.pp-epics { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-ep { position: relative; width: 72px; height: 72px; }
.pp-ep img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.pp-epx { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #111827; color: #fff; font-size: 11px; cursor: pointer; }
.pp-epadd { width: 72px; height: 72px; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 700; color: var(--brand, #2563EB); cursor: pointer; }
.pp-epadd input { display: none; }
.pp-when { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-more { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.pp-more select { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; font: inherit; }
.pp-gform { display: grid; grid-template-columns: 80px 1fr; gap: 8px; }
.pp-emo { text-align: center; font-size: 20px; }

/* day view: big posts, and the editor right in the page */
.pp-dayview { display: grid; gap: 10px; }
.pp-post.big { padding: 12px 14px; }
.pp-post.big .pp-text { -webkit-line-clamp: unset; display: block; font-size: 15px; line-height: 1.5; }
.pp-post.big .pp-pics { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.pp-inline { background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pp-inh { font: 800 17px var(--font-display, var(--font-body)); }
.pp-ta.big { min-height: 320px; font-size: 16px; }
.pp-pick { border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; font: 600 13px var(--font-body); background: #fff; color: var(--ink); }
.pp-pickl { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.pp-day > header { cursor: pointer; } .pp-day > header:hover b { text-decoration: underline; }
@media (min-width: 900px) { .pp-dayview, .pp-inline { max-width: 860px; } }
.pp-keepn { font-size: 12px; color: #9A3412; }
.pp-sent + .pp-keepn, p.pp-keepn { color: var(--muted); }
.pp-helper { background: #EEF2FF; border: 1px solid #C7D2FE; border-radius: 14px; padding: 10px 14px; display: grid; gap: 2px; }
.pp-helper small { color: var(--ink-soft); }
.pp-linkbox { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.pp-linkin { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: 13px ui-monospace, Consolas, monospace; background: #F8FAFC; }
.pp-gset.on2 { border-color: #6366F1; }
/* pictures: paste, drop, and text below */
.pp-ep { display: flex; flex-direction: column; gap: 3px; height: auto; }
.pp-ep img { height: 72px; }
.pp-epcap { border: 1px solid var(--line); background: #fff; border-radius: 6px; font: 700 11px var(--font-body); padding: 2px 0; cursor: pointer; color: var(--ink-soft); }
button.pp-epadd { background: transparent; font: inherit; font-size: 12px; font-weight: 700; color: var(--brand, #2563EB); }
.pp-dropping { outline: 3px dashed #2563EB; outline-offset: -6px; }
.pp-capsheet { z-index: 120; }
.pp-capin { width: min(640px, 100%); }
.pp-capview { background: #F1F5F9; border-radius: 10px; padding: 8px; display: grid; place-items: center; max-height: 46vh; overflow: auto; }
.pp-capcv { max-width: 100%; height: auto; max-height: 44vh; object-fit: contain; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.pp-capopts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pp-capbg { display: flex; gap: 6px; }
.pp-sw2 { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); cursor: pointer; }
.pp-sw2.on { box-shadow: 0 0 0 3px #2563EB; }
.pp-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pp-seg button { border: 0; background: #fff; padding: 6px 10px; font: 700 13px var(--font-body); cursor: pointer; color: var(--ink); }
.pp-seg button + button { border-left: 1px solid var(--line); }
.pp-seg button.on { background: var(--ink); color: #fff; }
.pp-sizes button:nth-child(1) { font-size: 11px; } .pp-sizes button:nth-child(3) { font-size: 17px; }
/* Edit · Verified · Posted */
.pp-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border-top: 1px solid var(--line); padding-top: 4px; margin-top: 2px; }
.pp-lk { min-width: 0; border: 0; background: none; padding: 5px 1px; font: 700 12.5px var(--font-body); color: var(--brand, #2563EB); cursor: pointer; border-radius: 6px; white-space: nowrap; }
.pp-lk i { font-style: normal; }
/* narrow week columns on a computer: icon above the word */
.pp-week .pp-post:not(.big) .pp-lk { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; padding: 4px 0; }
.pp-lk:hover { background: #F1F5F9; }
.pp-lk.pp-done { color: #15803D; }
.pp-ver { color: var(--ink-soft); }
.pp-ver.on { color: #15803D; background: #DCFCE7; }
.pp-post.ver { border-color: #86EFAC; box-shadow: inset 3px 0 0 #22C55E; }
.pp-week .pp-post:not(.big) .pp-links { gap: 4px; }
.pp-week .pp-post:not(.big) .pp-lk { font-size: 10.5px; }
.pp-post.big .pp-links { grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 20px; }
.pp-post.big .pp-lk { padding: 5px 10px; }
.pp-tap { cursor: pointer; border-radius: 6px; }
@media (hover: hover) { .pp-tap:hover { background: #F8FAFC; box-shadow: 0 0 0 4px #F8FAFC; } }
.pp-tap:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }
/* audio */
.pp-aud audio { width: 100%; height: 36px; }
.pp-audbtn { width: 100%; border: 1px dashed #CBD5E1; background: #F8FAFC; border-radius: 8px; padding: 7px; font: 700 12.5px var(--font-body); color: var(--ink); cursor: pointer; }
.pp-eaud { display: flex; flex-direction: column; gap: 6px; }
.pp-audrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pp-audadd { width: auto; height: auto; padding: 8px 12px; }
.pp-rec { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 10px; padding: 8px 10px; }
.pp-rect { font-variant-numeric: tabular-nums; font-size: 18px; }
.pp-dot { width: 12px; height: 12px; border-radius: 50%; background: #DC2626; animation: pp-blink 1s infinite; }
@keyframes pp-blink { 50% { opacity: .25; } }
/* day view: add a post between two posts */
.pp-insw { display: flex; justify-content: center; margin: -4px 0; position: relative; }
.pp-insw::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed #CBD5E1; }
.pp-ins { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #CBD5E1; background: #fff; color: var(--brand, #2563EB); font: 700 16px/1 var(--font-body); cursor: pointer; padding: 0; }
.pp-ins:hover { background: #EFF6FF; border-color: #2563EB; }
.pp-insw .pp-inline { position: relative; width: 100%; }
/* links and YouTube pictures */
.pp-url { color: #0B6BCB; text-decoration: underline; overflow-wrap: anywhere; }
.pp-yt { position: relative; display: block; width: 100%; max-width: 320px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #0F172A; margin-top: 4px; }
.pp-yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-ytp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 31px; border-radius: 9px; background: #FF0000; color: #fff; display: grid; place-items: center; font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.pp-prev .pp-yt { max-width: 180px; margin-top: 8px; }
.pp-week .pp-post:not(.big) .pp-yt { max-width: none; }
