* { box-sizing: border-box; }
html, body.tc-shell { height: 100%; height: 100dvh; margin: 0; overflow: hidden; background: #faf7f2; }
body.tc-shell { color: #51443e; font: 13px/1.6 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif; }
#tc-views { position: relative; height: 100%; min-height: 0; overflow: hidden; isolation: isolate; }
.tc-view { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #faf7f2; visibility: hidden; opacity: 0; pointer-events: none; }
.tc-view.is-visible { visibility: visible; opacity: 1; pointer-events: auto; z-index: 2; }
.tc-view.is-leaving { visibility: visible; pointer-events: none; z-index: 1; }
.tc-view.is-entering { animation: tc-view-enter .2s cubic-bezier(.2,.7,.3,1) both; }
.tc-view.is-leaving { animation: tc-view-leave .14s ease-out both; }
.tc-view-status { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; text-align: center; z-index: 3; background: #faf7f2; color: #9b8677; }
.tc-view-status > span { color: #b9827c; font: 42px/1 serif; }
.tc-view-status p { margin: 0; }
.tc-view-status button { border: 1px solid #dccbbd; border-radius: 8px; padding: 10px 20px; background: #fffaf5; color: #846b5d; font: inherit; cursor: pointer; }
.tc-shell [hidden] { display: none !important; }
@keyframes tc-view-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tc-view-leave { to { opacity: 0; } }
@media (max-width: 900px) {
  body.tc-shell { display: flex; flex-direction: column; padding-left: 0; }
  .tc-shell > .tc-navigation { flex: 0 0 auto; max-height: 65dvh; overflow-y: auto; }
  #tc-views { flex: 1 1 auto; width: 100%; height: auto; }
}
@media (prefers-reduced-motion: reduce) { .tc-view.is-entering, .tc-view.is-leaving { animation: none; } }
