/* 應用外框:頂欄、主導覽、頁面容器。各分頁自己的樣式之後放 css/pages/。 */
.topbar { position: sticky; top: 0; z-index: 200; background: var(--bg); border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar-inner { height: 60px; padding: 0 28px; display: flex; align-items: center; gap: 30px; line-height: 1; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: 0.01em; line-height: 1; flex-shrink: 0; cursor: pointer; }
.brand svg { display: block; flex-shrink: 0; transform: translateY(-1px); } /* 光學對齊:此處 line-height:1,字墨中心比行框高 1px */
.topbar-nav { display: flex; align-self: stretch; gap: 2px; flex-shrink: 0; }
.topbar-nav a { position: relative; display: flex; align-items: center; padding: 0 13px; text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: color 160ms var(--ease-out); }
.topbar-nav a:hover { color: var(--ink); }
.topbar-nav a[aria-current="page"] { color: var(--ink); }
.topbar-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: var(--glass); width: 200px; flex-shrink: 1; min-width: 120px; }
.search svg { flex-shrink: 0; }
.search input { flex: 1; min-width: 0; border: none; background: transparent; color: var(--ink); font-family: inherit; font-size: 13px; outline: none; }
.icon-btn { position: relative; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: var(--glass); color: oklch(0.85 0.01 250); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 160ms var(--ease-out); }
.icon-btn:hover { background: var(--glass-2); }
.icon-btn .dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.account-btn { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 12px 0 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: var(--glass); color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background 160ms var(--ease-out); }
.account-btn:hover { background: var(--glass-2); }
.account-av { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(140deg, #3a86dd, #1b2a63); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.account-av svg { display: block; }

/* 頁面容器與佔位面板 */
.app-main { max-width: 1320px; margin: 0 auto; padding: 30px 28px 60px; }
.page[hidden] { display: none; }
.page-head h2 { font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: -.02em; }
.page-head p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.empty-panel { margin-top: 22px; border: 1px dashed var(--line); border-radius: 16px; background: var(--glass); padding: 78px 24px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7; }
