/* Primary screens: touch-first. Header stays a vertical control stack. */
#chrome-header{position:sticky;top:0;z-index:100}
body[data-page=home] main.wrap{padding-top:12px}
.home-welcome{
  background:linear-gradient(145deg,#fffce8,#fffef8);
  border:1px solid var(--app-line);
  border-radius:24px;
  padding:22px 20px;
  margin:16px 0 22px;
}
.home-welcome h1{font-size:clamp(1.9rem,6vw,3.1rem);margin:8px 0 12px;max-width:16ch}
.home-welcome p{max-width:50ch;color:var(--app-muted)}
.home-quick{display:flex;gap:10px;flex-wrap:wrap}
.home-quick a{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;padding:10px 16px;border-radius:12px;
  background:var(--app-accent);color:var(--app-on-accent);font-weight:650;font-size:.85rem
}
.home-quick a + a{background:transparent;color:var(--app-ink);border:1px solid var(--app-line)}
.notification-header{
  position:sticky;top:8px;z-index:100;
  background:transparent;
  border:1px solid transparent;
  border-radius:18px;
  margin-bottom:16px;
  overflow:visible;
}
.notification-header .header-bar{
  min-height:56px;height:56px;padding:6px 16px;
  background:transparent;flex-wrap:nowrap;align-items:center;
}
.header-right{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-end !important;
  gap:6px !important;
  flex-shrink:0 !important;
  position:absolute !important;
  right:8px !important;
  top:8px !important;
}
.control-btn{width:40px;height:40px;border-radius:13px;min-height:40px}
.icon-section{padding:4px 0 20px}
.icon-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 12px;padding:8px 0}
.icon-item{padding:10px 4px;gap:10px;cursor:pointer;min-width:0}
.icon-bg{width:72px;height:72px;border-radius:21px;background:var(--app-surface);border:1px solid var(--app-line)}
.icon-label{font-size:.78rem;color:var(--app-ink);font-weight:650;line-height:1.3}
@media(min-width:800px){
  body[data-page=home] .icon-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-width:640px;margin:0 auto}
  .icon-bg{width:84px;height:84px}
  .home-welcome{padding:32px}
}
@media(max-width:600px){
  .icon-grid{gap:12px 4px}
  .icon-bg{width:60px;height:60px;border-radius:18px}
  .icon-img{width:34px;height:34px}
  .icon-label{font-size:.7rem}
  .folder-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 6px}
  .header-center{top:14px}
  .brand-place{font-size:.65rem}
  .home-welcome{padding:18px 16px 18px 16px}
  .home-welcome h1{font-size:1.85rem}
  .split{grid-template-columns:1fr}
  .offers{grid-template-columns:1fr}
  .mason{columns:2}
}
.notification-header .header-left{min-width:0;flex:1 1 auto}
.notification-header .brand-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.folder-header{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px}
.folder-close{position:relative;z-index:3;flex:0 0 auto;min-width:44px}
.hire-note{padding:8px 4px 12px}
.hire-note .btn{margin-top:12px}
main{filter:brightness(var(--brightness, 1))}
.notification-header, .app-bottom-nav, #solar, dialog{filter:none}
