/* pil_mem.css - look of PIL Mobi Memory Store (same colours as the PIL Mobi SEO Suite) */
:root {
  --red: #ef3b42; --red-dark: #c92a31; --coral: #f7676b; --ink: #111318; --ink-2: #1d2027;
  --muted: #6b7280; --line: #e5e7eb; --bg: #f5f6f8; --card: #fff; --ok: #16a34a;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.45; }
a { color: var(--red-dark); }
/* top bar with search */
.pm-top { position: sticky; top: 0; z-index: 20; background: var(--ink); background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 70%, #2a1316 100%); padding: calc(10px + var(--safe-t)) 14px 12px; color: #fff; }
.pm-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; }
.pm-brand img { width: 30px; height: 30px; border-radius: 8px; }
.pm-search input { width: 100%; border: 0; border-radius: 14px; padding: 13px 16px 13px 42px; font-size: 1rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center; outline: none; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.pm-banner { background: #fff7ed; border-bottom: 1px solid #fed7aa; padding: 10px 16px; font-size: .92rem; }
.pm-banner a { margin-left: 8px; font-weight: 700; }
.pm-view { max-width: 760px; margin: 0 auto; padding: 14px 14px calc(96px + var(--safe-b)); }
.pm-loading, .pm-empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.pm-hello { font-size: 1.35rem; font-weight: 800; margin: 6px 2px 10px; letter-spacing: -.3px; }
.pm-title { font-size: 1.45rem; font-weight: 800; margin: 6px 2px 12px; }
.pm-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 4px 8px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.pm-h a { text-transform: none; letter-spacing: 0; font-size: .85rem; text-decoration: none; }
/* lists */
.pm-list { background: var(--card); border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.pm-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); }
.pm-row:first-child { border-top: 0; }
.pm-row:active { background: #f3f4f6; }
.pm-row.done .pm-row-title { text-decoration: line-through; color: var(--muted); }
.pm-row-ico { flex: 0 0 38px; height: 38px; border-radius: 11px; background: #fdecec; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.pm-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pm-row-title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-row-sub { color: var(--muted); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-row-when { flex: 0 0 auto; font-size: .78rem; font-weight: 700; color: var(--red-dark); background: #fdecec; border-radius: 20px; padding: 3px 9px; }
.pm-row-bell { flex: 0 0 auto; font-size: .9rem; }
.pm-row-date { flex: 0 0 42px; text-align: center; font-size: .72rem; color: var(--muted); line-height: 1.1; }
.pm-row-date b { display: block; font-size: 1.2rem; color: var(--ink); }
/* topic tiles */
.pm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .pm-grid { grid-template-columns: repeat(4, 1fr); } }
.pm-tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; position: relative; min-height: 96px; }
.pm-tile:active { transform: scale(.98); }
.pm-tile-ico { font-size: 1.6rem; }
.pm-tile-name { font-weight: 700; font-size: .93rem; line-height: 1.2; }
.pm-tile-n { position: absolute; top: 12px; right: 12px; font-size: .78rem; color: var(--muted); font-weight: 700; }
/* cards, chips */
.pm-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.pm-card p { margin: 0 0 10px; }
.pm-welcome { background: linear-gradient(160deg, #fff 0%, #fff4f4 100%); }
.pm-welcome h2 { margin: 0 0 6px; font-size: 1.15rem; }
.pm-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.pm-head h1 { flex: 1 1 auto; font-size: 1.3rem; font-weight: 800; margin: 0; line-height: 1.25; word-break: break-word; }
.pm-back { flex: 0 0 38px; height: 38px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; text-decoration: none; color: var(--ink); line-height: 1; padding-bottom: 3px; }
.pm-chips, .pm-tags { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: none; }
.pm-tags { flex-wrap: wrap; overflow: visible; }
.pm-chip { flex: 0 0 auto; display: inline-block; padding: 6px 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); font-size: .85rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.pm-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pm-chip.ok { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
/* detail */
.pm-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 8px; margin-bottom: 12px; }
.pm-act { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 4px; text-align: center; text-decoration: none; color: var(--ink); font-size: 1.3rem; }
.pm-act span { display: block; font-size: .75rem; font-weight: 600; margin-top: 2px; }
.pm-field { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.pm-field:first-child { border-top: 0; }
.pm-field > span { flex: 0 0 82px; color: var(--muted); font-size: .86rem; padding-top: 1px; }
.pm-field > b { flex: 1 1 auto; font-weight: 600; word-break: break-word; }
.pm-field small { font-weight: 400; color: var(--muted); }
.pm-copy { cursor: copy; }
.pm-notes { white-space: normal; word-break: break-word; }
.pm-private { position: relative; cursor: pointer; min-height: 70px; }
.pm-private .pm-blur { filter: blur(7px); user-select: none; }
.pm-reveal { display: none; }
.pm-private .pm-reveal { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; font-weight: 700; color: var(--ink); }
/* buttons */
.pm-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 11px 18px; background: var(--red); color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; font-family: inherit; }
.pm-btn:active { background: var(--red-dark); }
.pm-btn:disabled { opacity: .6; }
.pm-btn-light { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.pm-btn-light:active { background: #f3f4f6; }
.pm-btn-outline { background: transparent; color: var(--red-dark); border: 2px solid var(--red); }
.pm-btn-danger { background: #fff; color: #b91c1c; border: 1px solid #fecaca; }
.pm-btn-sm { padding: 7px 12px; font-size: .85rem; }
.pm-btn-block { width: 100%; }
.pm-small { font-size: .85rem; margin: 10px 0; }
.pm-muted { color: var(--muted); }
/* form */
.pm-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 12px; }
.pm-form label small { font-weight: 400; color: var(--muted); }
.pm-form input:not([type=checkbox]), .pm-form select, .pm-form textarea, .pm-input { display: block; width: 100%; margin-top: 5px; border: 1px solid #d6d9df; border-radius: 12px; padding: 11px 12px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink); }
.pm-form input:focus, .pm-form select:focus, .pm-form textarea:focus, .pm-input:focus { outline: 2px solid rgba(239,59,66,.35); border-color: var(--red); }
.pm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-more { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }
.pm-more summary { font-weight: 700; cursor: pointer; padding: 2px 0; }
.pm-more[open] summary { margin-bottom: 10px; }
.pm-box { background: #fff8f8; border: 1px solid #fbd5d6; border-radius: 14px; padding: 12px 14px 4px; margin-bottom: 12px; }
.pm-box-h { font-weight: 800; margin-bottom: 8px; }
.pm-form .pm-switch, .pm-check { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 4px 0 12px; }
.pm-switch input, .pm-check input { width: 20px; height: 20px; accent-color: var(--red); }
.pm-hint { background: #fefce8; border: 1px solid #fde68a; border-radius: 12px; padding: 9px 12px; font-size: .88rem; margin: -4px 0 12px; }
/* bottom navigation */
.pm-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
.pm-nav a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; font-size: .7rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px 0; }
.pm-nav a span { font-size: 1.25rem; line-height: 1.3; filter: grayscale(1); opacity: .7; }
.pm-nav a.on { color: var(--red-dark); }
.pm-nav a.on span { filter: none; opacity: 1; }
.pm-nav .pm-nav-add span { width: 46px; height: 46px; margin-top: -22px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; filter: none; opacity: 1; box-shadow: 0 8px 18px rgba(239,59,66,.4); border: 4px solid #fff; }
.pm-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + var(--safe-b)); z-index: 50; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 12px; font-size: .92rem; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.25); text-align: center; }
/* sign-in page */
.pm-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(circle at 85% 8%, rgba(239,59,66,.5) 0, rgba(239,59,66,0) 42%), linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 60%, #2a1316 100%); }
.pm-login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 22px; padding: 30px 26px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.pm-login-logo { width: 72px; height: 72px; border-radius: 18px; display: block; margin: 0 auto 12px; }
.pm-login h1 { text-align: center; margin: 0 0 6px; font-size: 1.6rem; font-weight: 800; }
.pm-login .pm-muted { text-align: center; }
.pm-label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 0; }
.pm-pass { position: relative; }
.pm-pass .pm-input { padding-right: 46px; }
.pm-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin-top: 2px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
.pm-login .pm-check { margin: 16px 0; font-weight: 500; }
.pm-login .pm-btn-light { width: 100%; margin-top: 8px; }
.pm-alert { border-radius: 12px; padding: 10px 14px; margin: 12px 0; font-size: .92rem; }
.pm-alert.ok { background: #dcfce7; color: #166534; }
.pm-alert.err { background: #fee2e2; color: #991b1b; }
.pm-choice { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; }
.pm-linkbtn { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--red-dark); text-decoration: underline; font-size: .88rem; cursor: pointer; font-family: inherit; }
.pm-shared { background: #f5f6f8; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .86rem; margin: 14px 0 10px; }
.pm-terms { font-size: .86rem; font-weight: 400 !important; align-items: flex-start !important; }
.pm-terms input { margin-top: 2px; flex: 0 0 auto; }
/* sponsor adverts strip (same size pictures as the Incident Log: 600 x 200) */
.pm-adbar { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; overflow: hidden; }
.pm-adlabel { flex: 0 0 auto; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pm-adview { flex: 1 1 auto; overflow: hidden; border-radius: 14px; }
.pm-adtrack { display: flex; gap: 10px; width: max-content; }
.pm-adtrack.run { animation: pmAdScroll var(--dur, 30s) linear infinite; }
.pm-adtrack.run:hover, .pm-adtrack.run:active { animation-play-state: paused; }
@keyframes pmAdScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pm-ad { display: block; flex: 0 0 auto; }
.pm-ad img { display: block; height: 96px; width: 288px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
/* sponsor portal + admin */
.pm-portal { background: var(--bg); }
.pm-pnav { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 70%, #2a1316 100%); color: #fff; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.pm-pbrand { display: flex; align-items: center; gap: 10px; }
.pm-pbrand img { width: 36px; height: 36px; border-radius: 9px; }
.pm-pbrand small { display: block; color: rgba(255,255,255,.65); font-size: .78rem; }
.pm-plinks { display: flex; flex-wrap: wrap; gap: 4px; }
.pm-plinks a { color: rgba(255,255,255,.85); text-decoration: none; padding: 7px 12px; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.pm-plinks a.on, .pm-plinks a:hover { background: rgba(255,255,255,.12); color: #fff; }
.pm-pwrap { max-width: 1100px; margin: 0 auto; padding: 18px 16px 40px; }
.pm-pwrap h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.35rem; }
.pm-pwrap h3 { margin: 0 0 10px; font-size: 1.05rem; }
.pm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.pm-stats > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.pm-stats b { display: block; font-size: 1.3rem; }
.pm-stats span { color: var(--muted); font-size: .82rem; }
.pm-tw { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
.pm-t { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pm-t th, .pm-t td { text-align: left; padding: 9px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.pm-t th { background: #f9fafb; border-top: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pm-t tr.pm-off td { opacity: .5; }
.pm-adthumb { display: block; width: 120px; height: 40px; object-fit: cover; border-radius: 6px; margin-bottom: 4px; }
.pm-adpreview { display: block; width: 100%; max-width: 600px; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); margin: 0 0 12px; }
.pm-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: #e5e7eb; color: #374151; vertical-align: middle; }
.pm-badge.st-pending { background: #fef3c7; color: #92400e; }
.pm-badge.st-posted { background: #dcfce7; color: #166534; }
.pm-badge.st-paused { background: #e0e7ff; color: #3730a3; }
.pm-badge.st-cancelled { background: #fee2e2; color: #991b1b; }
.pm-chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pm-inline { display: inline; margin: 0; }
.pm-x { border: 0; background: none; color: #b91c1c; cursor: pointer; margin-left: 4px; font-size: .85rem; }
.pm-row4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pm-paybox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: #fff8f8; border-color: #fbd5d6; }
.pm-tokenbox { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.pm-timeline { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.pm-timeline li { padding: 6px 0; border-top: 1px solid var(--line); }
.pm-timeline li:first-child { border-top: 0; }
.pm-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.pm-center { text-align: center; }
.pm-portal .pm-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 12px; }
@media (max-width: 560px) { .pm-ad img { height: 80px; width: 240px; } .pm-row2 { grid-template-columns: 1fr; } }
/* sharing */
.pm-inbox-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: center; text-decoration: none; color: var(--ink); background: #fff7ed; border-color: #fed7aa; }
.pm-inbox-note span { color: var(--red-dark); font-weight: 700; font-size: .9rem; }
.pm-sharecard { border-left: 4px solid var(--red); }
.pm-sharefrom { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.pm-sharetitle { font-size: 1.12rem; font-weight: 800; margin-bottom: 6px; }
.pm-sharenotes { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.pm-sharemsg { background: #f5f6f8; border-radius: 10px; padding: 8px 12px; margin-top: 10px; font-style: italic; }
.pm-sharepreview { background: #fff8f8; border-color: #fbd5d6; }
/* easy sign-in */
.pm-easy .pm-login-card { max-width: 440px; padding: 28px 22px; }
.pm-easy h1 { font-size: 1.7rem; }
.pm-lead { text-align: center; color: var(--muted); font-size: 1.05rem; margin: 0 0 6px; }
.pm-big { font-size: 1.15rem !important; padding: 15px 14px !important; }
.pm-btn-big { padding: 16px 18px; font-size: 1.08rem; margin-top: 16px; border-radius: 14px; }
.pm-code { text-align: center; letter-spacing: 10px; font-size: 1.6rem !important; font-weight: 700; }
.pm-easy .pm-label { font-size: 1rem; margin-top: 16px; }
.pm-emailchip { background: #f5f6f8; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 12px; word-break: break-all; }
.pm-emailchip a { float: right; font-weight: 700; margin-left: 10px; }
.pm-fix { background: #fefce8; border: 1px solid #fde68a; border-radius: 10px; padding: 8px 12px; margin-top: 8px; font-size: .95rem; }
.pm-fix a { font-weight: 800; }
.pm-or { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 14px 0 0; font-size: .9rem; }
.pm-or::before, .pm-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.pm-or + .pm-btn-big { margin-top: 12px; }
.pm-eye { font-size: .9rem; font-weight: 700; color: var(--red-dark); font-family: inherit; }
.pm-invited { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 10px 12px; text-align: center; margin-bottom: 10px; }
.pm-help { display: block; text-align: center; margin: 16px 0 4px; padding: 12px; border-radius: 12px; background: #e9fbe9; color: #166534; font-weight: 700; text-decoration: none; }
.pm-optional { margin-top: 14px; }
.pm-optional .pm-input { margin-top: 8px; }
.pm-invite-ready { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 12px; margin-top: 12px; }
.pm-wa { background: #25d366; }
.pm-wa:active { background: #1da851; }
.pm-installbar { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; width: 100%; text-align: left; border: 2px dashed var(--red); background: #fff8f8; color: var(--ink); border-radius: 16px; padding: 12px 14px; margin: 0 0 12px; cursor: pointer; font-family: inherit; font-size: 1rem; }
.pm-installbar span { grid-row: span 2; font-size: 1.8rem; }
.pm-installbar small { color: var(--muted); font-size: .85rem; }
/* install button in the top bar */
.pm-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pm-topline .pm-brand { margin-bottom: 0; }
.pm-topinstall { border: 1px solid rgba(255,255,255,.35); background: var(--red); color: #fff; border-radius: 20px; padding: 7px 14px; font-weight: 700; font-size: .85rem; font-family: inherit; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 14px rgba(239,59,66,.35); }
.pm-topinstall:active { background: var(--red-dark); }
/* fold open / closed sections on Home */
.pm-sec-h { margin-bottom: 8px; }
.pm-sec-t { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.pm-sec-arrow { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; background: #e5e7eb; color: var(--ink); font-size: .62rem; }
.pm-sec-t:hover .pm-sec-arrow { background: #fdecec; color: var(--red-dark); }
.pm-sec-n { background: #e5e7eb; color: var(--ink); border-radius: 10px; padding: 1px 7px; font-size: .72rem; letter-spacing: 0; }
.pm-sec.shut .pm-sec-b { display: none; }
.pm-sec.shut .pm-sec-h { margin-bottom: 0; }
/* phones: 4 small topic tiles per row so Topics at the top stays short */
@media (max-width: 559px) {
  .pm-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .pm-tile { min-height: 0; padding: 9px 4px 8px; align-items: center; text-align: center; gap: 2px; border-radius: 12px; }
  .pm-tile-ico { font-size: 1.35rem; }
  .pm-tile-name { font-size: .68rem; font-weight: 600; line-height: 1.15; }
  .pm-tile-n { top: 4px; right: 6px; font-size: .64rem; }
}
