html, body.tk-body { max-width: none !important; width: 100% !important; min-height: 100%; margin: 0; }
.tk-body { background: #0f0a1a; color: #fff; font-family: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif; }
html[data-theme="light"] .tk-body { background: #ece8f6; color: #1a1228; }
.tk-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: var(--brand, #5B21B6); color: #fff; flex-wrap: wrap; }
.tk-top span { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.tk-top select { border: 0; border-radius: 10px; padding: 6px 10px; background: #fff; color: #1a1228; }
.tk-top a, .tk-top span { color: #fff; cursor: pointer; }
.tk-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 20px; max-width: 980px; margin: 0 auto; }
.tk-tile { background: #2a2040; border: 0; border-radius: 18px; padding: 28px 18px; color: #fff; text-align: left; cursor: pointer; }
html[data-theme="light"] .tk-tile { background: #fff; color: #1a1228; box-shadow: var(--shadow); }
.tk-tile b { display: block; font-size: 22px; font-family: Outfit, "Noto Sans TC", sans-serif; margin-bottom: 6px; }
.tk-tile small { opacity: .75; line-height: 1.4; }
.howto { margin: 10px 16px 0; padding: 10px 12px; border-radius: 12px; background: #2a2040; color: #e9d5ff; font-size: 13px; line-height: 1.45; }
html[data-theme="light"] .howto { background: #fff; color: #4c1d95; }
.zones { display: flex; gap: 8px; padding: 12px 16px 0; flex-wrap: wrap; }
.zones b { padding: 8px 14px; border-radius: 16px; background: #2a2040; cursor: pointer; }
html[data-theme="light"] .zones b { background: #fff; }
.zones b.on { background: var(--secondary, #2563EB); color: #fff; }
.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 16px; }
.kcard { background: #1c142c; border-radius: 16px; padding: 14px; box-shadow: 0 0 0 1px #3b2a5c; }
html[data-theme="light"] .kcard { background: #fff; color: #1a1228; box-shadow: var(--shadow); }
.kcard.rush { box-shadow: 0 0 0 2px #dc2626; }
.kcard.guest { box-shadow: 0 0 0 2px #38bdf8; }
.kcard .tbl { font-family: Outfit, sans-serif; font-size: 28px; color: #93c5fd; }
.kcard .dish { font-size: 20px; font-weight: 700; margin: 6px 0; }
.kcard .meta { font-size: 13px; opacity: .75; }
.kcard .acts { display: flex; gap: 8px; margin-top: 10px; }
.kcard .acts button { flex: 1; border: 0; border-radius: 10px; padding: 8px; background: #5B21B6; color: #fff; }
.kcard .acts button.lite { background: #3b2a5c; }
html[data-theme="light"] .kcard .acts button.lite { background: #ede9fe; color: #5B21B6; }
.board { min-height: calc(100vh - 56px); padding: 24px; text-align: center; }
.board .now { font-family: Outfit, sans-serif; font-size: clamp(72px, 18vw, 180px); line-height: 1; color: #fbbf24; }
.board .sub { font-size: 22px; margin: 8px 0 24px; }
.board .wait { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.board .wait b { background: #2a2040; border-radius: 14px; padding: 12px 18px; font-size: 22px; font-family: Outfit, sans-serif; }
html[data-theme="light"] .board .wait b { background: #fff; color: #1a1228; }
.take { max-width: 560px; margin: 16px auto; background: #fff; color: #111; border-radius: 16px; padding: 16px; }
html[data-theme="dark"] .take { background: #1c142c; color: #f4f0ff; }
.take .big { text-align: center; font-family: Outfit, sans-serif; font-size: 72px; color: #5B21B6; }
.line { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line, #eee); gap: 8px; }
.mini { border: 0; background: var(--brand, #5B21B6); color: #fff; border-radius: 8px; padding: 4px 8px; }
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 28px; background: rgba(0,0,0,.8); color: #fff; padding: 10px 16px; border-radius: 20px; z-index: 60; display: none; }
.login-wrap { padding: 32px 16px; }
@media (max-width: 720px) {
  .kds { grid-template-columns: 1fr; }
  .board .now { font-size: 80px; }
}
