:root{
  --bg:#f6f3ef; --card:#ffffff; --ink:#1d1a17; --muted:#6f675f; --line:#e9e2da;
  --shadow:0 1px 2px rgba(40,25,10,.06),0 6px 20px rgba(40,25,10,.06);
  --orange:#e8590c; --red:#d6336c; --blue:#1c7ed6; --green:#2f9e44;
  --purple:#7048e8; --teal:#0c8599; --slate:#495057;
}
*{box-sizing:border-box;margin:0}
html,body{background:var(--bg);color:var(--ink)}
body{font:16px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;min-height:100dvh}
.wrap{max-width:1120px;margin:0 auto;
  padding:calc(env(safe-area-inset-top) + 28px) calc(env(safe-area-inset-right) + 16px)
          calc(env(safe-area-inset-bottom) + 32px) calc(env(safe-area-inset-left) + 16px)}

.top{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:26px}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.logo{width:48px;height:48px;border-radius:14px;box-shadow:var(--shadow)}
h1{font-size:24px;font-weight:750;letter-spacing:-.02em}
.sub{color:var(--muted);font-size:14px}
.today{color:var(--muted);font-size:14px;font-weight:600}

.section{margin-bottom:26px}
.section h2{font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
  color:var(--muted);margin:0 4px 10px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:12px}

.card{display:flex;align-items:center;gap:14px;min-width:0;min-height:84px;padding:16px;
  background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);
  color:inherit;text-decoration:none;position:relative;overflow:hidden;
  transition:transform .15s ease,box-shadow .15s ease;-webkit-tap-highlight-color:transparent}
.card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--c)}
.card:hover{transform:translateY(-2px);box-shadow:0 2px 4px rgba(40,25,10,.08),0 12px 28px rgba(40,25,10,.10)}
.card:active{transform:scale(.98)}
.card:focus-visible{outline:3px solid var(--c);outline-offset:2px}

.ico{flex:none;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;
  background:color-mix(in srgb,var(--c) 13%,white);color:var(--c)}
.ico svg{width:26px;height:26px}
.txt{min-width:0;flex:1}
.name{font-size:17px;font-weight:700;letter-spacing:-.01em}
.desc{color:var(--muted);font-size:14px;margin-top:2px;overflow-wrap:anywhere}
.host{color:var(--c);font-size:12px;font-weight:600;margin-top:5px;overflow-wrap:anywhere}
.go{flex:none;width:22px;height:22px;color:#b8afa6}
.card:hover .go{color:var(--c)}

/* Home screen app: fills the screen, no bounce */
html,body{overscroll-behavior:none}
@media (display-mode:standalone){ .wrap{padding-top:calc(env(safe-area-inset-top) + 18px)} }

/* Desktop and large screens: bigger header and cards */
@media (min-width:900px){
  .wrap{padding-top:56px}
  .top{margin-bottom:38px}
  .logo{width:60px;height:60px;border-radius:17px}
  h1{font-size:32px}
  .sub,.today{font-size:15px}
  .grid{gap:18px}
  .card{min-height:104px;padding:22px;border-radius:20px}
  .ico{width:56px;height:56px;border-radius:16px}
  .ico svg{width:30px;height:30px}
  .name{font-size:19px}
}

/* Phone held sideways: short screen, tighter top */
@media (max-height:500px) and (orientation:landscape){
  .wrap{padding-top:calc(env(safe-area-inset-top) + 14px)}
  .top{margin-bottom:14px}
  .logo{width:40px;height:40px}
  h1{font-size:20px}
  .card{min-height:72px;padding:12px 14px}
}
