:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #f7f8fa;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.tool-shell {
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  background: #fff;
}

.tool-shell__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0 14px;
  color: #20242c;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e7e9ee;
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.03);
  z-index: 1;
}

.tool-shell__home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 5px 7px;
  margin-left: -7px;
  border-radius: 7px;
  color: inherit;
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
}

.tool-shell__home:hover { background: #f0f2f5; }
.tool-shell__home:focus-visible { outline: 2px solid #2f6df6; outline-offset: 1px; }

.tool-shell__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f6df6;
}

.tool-shell__separator { color: #a4aab5; }

.tool-shell__title {
  min-width: 0;
  overflow: hidden;
  color: #5b6371;
  font-size: 13px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-shell__mode {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid #f2dfa8;
  border-radius: 999px;
  color: #8a6100;
  background: #fff8e6;
  font-size: 10.5px;
  font-weight: 650;
}

.tool-shell__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 520px) {
  .tool-shell { grid-template-rows: 40px minmax(0, 1fr); }
  .tool-shell__bar { padding: 0 10px; }
}

@media print {
  .tool-shell { display: block; }
  .tool-shell__bar { display: none; }
  .tool-shell__frame { height: 100vh; }
}
