/* Homepage folders: Android-style home grid. Only the homepage uses these classes. */
.folders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 10px; }
.folder { -webkit-appearance: none; appearance: none; background: none; border: none; font: inherit; color: inherit; text-align: center; cursor: pointer; padding: 6px 2px; border-radius: 18px; transition: transform 0.18s ease; -webkit-tap-highlight-color: transparent; }
.folder:active { transform: scale(0.92); }
.folder:focus { outline: none; border: none; box-shadow: none; }
.ftile { width: 68px; max-width: 100%; height: 68px; margin: 0 auto; border: 1.5px solid rgba(31,28,24,0.9); border-radius: 20px; background: linear-gradient(180deg, #FFFEF9, #F3EAD3); box-shadow: 0 6px 16px rgba(31,28,24,0.14), 0 1px 3px rgba(31,28,24,0.1); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; padding: 7px; gap: 3px; }
.ftile svg { width: 100%; height: 100%; }
.ftile .dot4 { background: #1F1C18; border-radius: 50%; width: 10px; height: 10px; margin: auto; }
.fname { font-size: 12px; font-weight: 700; margin-top: 6px; line-height: 1.25; }
.fcount { font-size: 11px; color: #7a7f72; }
.hint { font-size: 13px; color: #5c6653; text-align: center; margin-top: 22px; }
/* Folder popup: Pixel-launcher style, centered over a dimmed home grid. */
.sheet { display: none; position: fixed; inset: 0; z-index: 20; }
.sheet.open { display: block; }
.backdrop { position: absolute; inset: 0; background: rgba(31,28,24,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sheetbox { position: absolute; left: 50%; top: 50%; width: min(92vw, 520px); max-height: 80dvh; overflow-y: auto; background: #F7F3E8; border: 3px solid #1F1C18; border-radius: 28px; padding: 20px 16px 28px; transform: translate(-50%, -50%) scale(0.9); opacity: 0; transition: transform 0.38s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.25s ease; box-shadow: 0 24px 60px rgba(0,0,0,0.35); will-change: transform; }
.sheet.open .sheetbox { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.sheet.reduce .sheetbox { transition: none; }
.sheetbox h2 { font-family: Georgia, serif; font-size: 22px; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.sheetbox h2 svg { width: 30px; height: 30px; flex-shrink: 0; }
.sheetbox h2 a { color: inherit; text-decoration: none; }
.sheetbox .scount { color: #5c6653; font-size: 13px; margin-bottom: 16px; }
.appgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; }
.app { text-align: center; cursor: pointer; opacity: 0; transform: translateY(10px); animation: appIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards; text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
@keyframes appIn { to { opacity: 1; transform: translateY(0); } }
.app .chipicon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 auto; background: #fff; border-radius: 17px; box-shadow: 0 4px 12px rgba(31,28,24,0.12); }
.app .chipicon svg { width: 40px; height: 40px; }
.app span { display: block; font-size: 11px; font-weight: 600; line-height: 1.25; margin-top: 4px; }
.app .pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 5px 10px; border: 1.5px solid #1F1C18; border-radius: 999px; background: #fff; margin-top: 12px; }
.app.soon { opacity: 0.55; }
.app .soon-tag { display: block; font-size: 10px; font-weight: 700; color: #B7791F; margin-top: 2px; }
