/* SPA 殼：面板切換 + 分類/訂單/通知 view 樣式（token 化，亮暗與八色調自動跟隨） */

/* ---- 面板 ---- */
.shell-view { display: none; }
.shell-view.on { display: block; }
.shell-view .page { max-width: 640px; margin: 0 auto; padding: 28px 20px 40px; min-height: 70vh; }
.shell-view .page h1 { font-size: 24px; font-weight: 900; letter-spacing: 1px; margin-bottom: 4px; }
.shell-view .page .sub { font-size: 13px; color: var(--ink3); margin-bottom: 22px; }
#view-categories .page { max-width: 720px; }

/* ---- 空狀態（共用）---- */
.empty-state { text-align: center; padding: 70px 0 40px; color: var(--ink3); }
.empty-state .big { font-size: 42px; margin-bottom: 12px; opacity: .5; }
.empty-state .t { font-size: 15px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; }
.empty-state .s { font-size: 13px; line-height: 1.7; }
.empty-state .btn-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px;
  background: var(--ac); color: var(--navact); text-decoration: none; border: none; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 700; padding: 11px 26px; border-radius: 999px; }

/* ---- 通知卡 ---- */
.notice-card { display: flex; align-items: flex-start; gap: 14px;
  background: var(--surf); border: .5px solid var(--line); border-radius: 14px; padding: 15px 17px; margin-bottom: 12px; }
.notice-card .ic { flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: var(--actint); color: var(--acink); }
.notice-card .ic.ok { background: color-mix(in oklab, var(--okc) 13%, transparent); color: var(--okc); }
.notice-card .bd { flex: 1; min-width: 0; }
.notice-card .tt { font-size: 14.5px; font-weight: 700; }
.notice-card .ds { font-size: 12.5px; color: var(--ink2); margin-top: 3px; line-height: 1.55; }
.notice-card .tm { font-size: 11px; color: var(--ink3); margin-top: 5px; }

/* ---- 訂單卡 ---- */
.ord-card { background: var(--surf); border: .5px solid var(--line); border-radius: 16px; padding: 15px 17px; margin-bottom: 13px; }
.ord-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ord-top .store { font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ord-top .store i { color: var(--acink); font-size: 15px; }
.ord-top .date { font-size: 11.5px; color: var(--ink3); white-space: nowrap; }
.ord-items { border-top: .5px solid var(--line); border-bottom: .5px solid var(--line); padding: 8px 0; margin-bottom: 10px; }
.ord-item { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 2.5px 0; font-size: 13px; }
.ord-item .n { color: var(--ink2); min-width: 0; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ord-item .q { color: var(--ink3); font-size: 12px; white-space: nowrap; }
.ord-bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ord-bot .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.ord-bot .amt { font-size: 15.5px; font-weight: 800; white-space: nowrap; }
.ord-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; }
.ord-badge i { font-size: 13px; }
.ord-badge.ok { color: var(--okc); background: color-mix(in oklab, var(--okc) 13%, transparent); }
.ord-badge.wait { color: var(--acink); background: var(--actint); }
.ord-badge.bad { color: var(--dang); background: color-mix(in oklab, var(--dang) 11%, transparent); }
.ord-meta { font-size: 11.5px; color: var(--ink3); margin-top: 8px; }
.ord-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.ord-pager button { border: 1.5px solid var(--line); background: var(--surf); width: 38px; height: 38px;
  border-radius: 50%; font-size: 16px; cursor: pointer; color: var(--ink2); }
.ord-pager button:disabled { opacity: .3; cursor: default; }
.ord-pager .pg { font-size: 13.5px; color: var(--ink2); }

/* ---- 分類卡 ---- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-card { background: var(--surf); border: .5px solid var(--line); border-radius: 16px; padding: 22px 16px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink2); }
.cat-card i { font-size: 30px; color: var(--acink); opacity: .85; }
.cat-card .nm { font-size: 14.5px; font-weight: 700; }
.cat-card .soon { font-size: 10.5px; font-weight: 700; color: var(--ink3);
  background: var(--surf2); padding: 2px 10px; border-radius: 999px; }
