.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.views { flex: 1; position: relative; min-height: 0; }
.view { position: absolute; inset: 0; display: none; flex-direction: column; overflow: hidden; }
.view.active { display: flex; animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.tabbar {
  flex: none; display: flex;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 0 6px;
  color: var(--muted); font-size: 10.5px; font-weight: 600;
}
.tab.active { color: var(--primary); }
.tab span { line-height: 1.2; }

.home-top {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-t)) 18px 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.home-brand { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 700; }
.home-brand img {
  width: 30px; height: 30px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
}

.home-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 22px 20px 30px;
  max-width: 720px; width: 100%; margin: 0 auto;
}

.hero h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.4px; }
.hero p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.chips { display: flex; gap: 9px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 16px;
  border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--text-2); font-size: 13px; font-weight: 500;

}

.composer { margin-top: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: 15px 15px 11px; }
.composer textarea { width: 100%; resize: none; font-size: 15px; line-height: 1.7; min-height: 76px; max-height: 240px; }
.composer textarea::placeholder { color: #b6b9c9; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.composer-left { display: flex; align-items: center; gap: 10px; }
.composer-plus { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--text-2); background: var(--bg); border: 1px solid var(--line); }
.composer-count { font-size: 11.5px; color: var(--muted); }
.composer-send { height: 38px; padding: 0 22px; font-size: 13.5px; border-radius: 999px; }

.att-bar { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.att-bar.hidden { display: none !important; }
.att-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 6px 4px 11px;
  font-size: 12px; color: var(--text-2); max-width: 100%;
}
.att-ico { flex: none; }
.att-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.att-size { color: var(--muted); font-size: 11px; }
.att-x { width: 18px; height: 18px; border-radius: 50%; background: #e4e6ee; color: var(--muted); font-size: 13px; line-height: 1; display: flex; align-items: center; justify-content: center; flex: none; }

.msg-atts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.msg-att { font-size: 11.5px; background: rgba(255,255,255,.55); border-radius: 7px; padding: 2px 8px; }

.bar-plus { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: var(--text-2); background: var(--bg); border: 1px solid var(--line); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.feature {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 15px 8px;

}
.feature-ico { font-size: 22px; }
.feature b { font-size: 12.5px; font-weight: 700; display: block; }
.feature i { font-size: 11px; color: var(--muted); font-style: normal; }

@media (min-width: 700px) {
  .hero h1 { font-size: 32px; }
  .features { grid-template-columns: repeat(3, 1fr); }
}
