/* 主播 App（手機）版面：上方公司品牌、下方分頁列 */
body { background: var(--bg); padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.app-top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; display: flex; align-items: center; gap: 10px; }
.app-top .brandmark { width: 34px; height: 34px; font-size: 16px; border-radius: 10px 3px 10px 3px; }
.app-top h1 { font-size: 16px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-top .back { border: 0; background: none; font-size: 22px; padding: 0 6px 0 0; color: var(--ink); }
.view { padding: 14px 16px 24px; max-width: 640px; margin: 0 auto; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); display: flex;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { flex: 1; text-align: center; text-decoration: none; color: #8f8c9d; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; padding: 2px 0; }
.tabbar a .i { font-size: 21px; line-height: 1.1; filter: grayscale(1); opacity: .75; }
.tabbar a.on { color: var(--accent); font-weight: 700; }
.tabbar a.on .i { filter: none; opacity: 1; }
.tabbar .dot { position: absolute; top: 0; left: 50%; margin-left: 8px; background: var(--red); color: #fff; font-size: 10px; min-width: 17px; height: 17px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }

.hello { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #ff9ec4)); color: #fff; border-radius: 18px; padding: 18px; display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.hello .avatar { width: 54px; height: 54px; border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .25); color: #fff; font-size: 22px; }
.hello h2 { font-size: 18px; }
.hello p { margin: 2px 0 0; font-size: 12.5px; opacity: .9; }
.banner { display: block; border-radius: 16px; overflow: hidden; margin-bottom: 14px; background: var(--light); aspect-ratio: 3 / 1; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 4px; text-align: center; text-decoration: none; color: var(--ink); font-size: 12px; position: relative; }
.tile .i { font-size: 24px; display: block; margin-bottom: 4px; }
.tile .dot { position: absolute; top: 6px; right: 8px; background: var(--red); width: 9px; height: 9px; border-radius: 50%; }
.sec { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 2px 8px; }
.sec h3 { font-size: 15px; }
.sec a { font-size: 12.5px; text-decoration: none; }
.item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; margin-bottom: 9px; display: block; color: inherit; text-decoration: none; }
.item .t { font-weight: 700; display: flex; gap: 6px; align-items: center; }
.item .s { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.item .body { margin-top: 8px; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.item.unread { border-left: 4px solid var(--red); }
.item .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.new-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; display: inline-block; flex: none; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; }
.chips button { white-space: nowrap; border-radius: 99px; padding: 6px 13px; font-size: 13px; }
.chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.thumb { width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; background: var(--bg); margin-top: 8px; display: block; }
audio, video { width: 100%; margin-top: 8px; border-radius: 10px; }
.slots { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.slot { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: #f2f1f6; font-size: 13px; }
.slot.mine { background: var(--light); color: var(--accent); font-weight: 600; }
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.time-row label, .stack label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: #4a4759; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.profile-head { text-align: center; padding: 10px 0 4px; }
.profile-head .avatar { width: 84px; height: 84px; font-size: 32px; }
.profile-head h2 { margin-top: 8px; font-size: 19px; }
.menu { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.menu > * { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; font-size: 14px; color: var(--ink); text-align: left; }
.menu > *:last-child { border-bottom: 0; }
.tip { background: #fff8e8; border: 1px solid #f3dfb2; color: #7a5a14; border-radius: 12px; padding: 11px 13px; font-size: 13px; margin-bottom: 12px; }
.avatar-pick { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.avatar-pick .avatar { width: 96px; height: 96px; font-size: 36px; }
.cal .day { min-height: 44px; padding: 4px; align-items: center; }
.cal .day .dot { width: 6px; height: 6px; padding: 0; border-radius: 50%; background: var(--accent); }
.cal .day .dot.orange { background: var(--orange); }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(6, 1fr); } }

/* 安裝教學（手機一打開、還沒加入主畫面時） */
.install-page { min-height: 100dvh; padding: calc(28px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px;
  background: radial-gradient(circle at 20% 0%, var(--light), transparent 50%); }
.install-brand { display: flex; align-items: center; gap: 12px; }
.install-brand .brandmark { width: 56px; height: 56px; font-size: 26px; }
.install-brand strong { font-size: 20px; }
.install-page h1 { font-size: 24px; margin: 6px 0 0; }
.install-page h2 { font-size: 17px; margin: 6px 0 0; }
.install-page > p { margin: 0; font-size: 14px; line-height: 1.6; }
.install-warn { background: #fff7e6; border: 1px solid #f0b44c; color: #7a4b00; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.6; }
.install-warn b { display: block; font-size: 15px; margin-bottom: 2px; }
.install-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.install-steps li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 2px 10px rgba(60, 40, 120, .06); }
.install-steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.install-steps b { display: block; font-size: 15.5px; }
.install-steps small { color: var(--muted); font-size: 13px; }
.install-steps .ico { display: inline-block; border: 1.5px solid currentColor; border-radius: 4px; padding: 0 4px; font-size: 11px; }
.install-page .link { align-self: center; font-size: 13px; color: var(--muted); }
.reg-avatar { display: flex; align-items: center; gap: 14px; }
